summaryrefslogtreecommitdiff
path: root/src/layout/stack.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 23:16:02 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 23:16:02 +0200
commit02b586cc36fad58a622ecb439e1cf3a76a347207 (patch)
tree11ec37daa234e19e9eb30e0370795e77e4ef418b /src/layout/stack.rs
parentfd0b89a1d8e4f811fcf3517d321a327a0cf72edf (diff)
Add lots of Eq impls
Diffstat (limited to 'src/layout/stack.rs')
-rw-r--r--src/layout/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/stack.rs b/src/layout/stack.rs
index d8e30b2a..516a2284 100644
--- a/src/layout/stack.rs
+++ b/src/layout/stack.rs
@@ -3,7 +3,7 @@ use decorum::N64;
use super::*;
/// A node that stacks its children.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub struct StackNode {
/// The `main` and `cross` directions of this stack.
@@ -20,7 +20,7 @@ pub struct StackNode {
}
/// A child of a stack node.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub enum StackChild {
/// Spacing between other nodes.