summaryrefslogtreecommitdiff
path: root/src/layout/grid.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/grid.rs
parentfd0b89a1d8e4f811fcf3517d321a327a0cf72edf (diff)
Add lots of Eq impls
Diffstat (limited to 'src/layout/grid.rs')
-rw-r--r--src/layout/grid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/grid.rs b/src/layout/grid.rs
index b0bf225f..06b6596c 100644
--- a/src/layout/grid.rs
+++ b/src/layout/grid.rs
@@ -1,7 +1,7 @@
use super::*;
/// A node that arranges its children in a grid.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub struct GridNode {
/// The `main` and `cross` directions of this grid.
@@ -18,7 +18,7 @@ pub struct GridNode {
}
/// Defines how to size a grid cell along an axis.
-#[derive(Debug, Copy, Clone, PartialEq, Hash)]
+#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum TrackSizing {
/// Fit the cell to its contents.
Auto,