diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-08 23:16:02 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-08 23:16:02 +0200 |
| commit | 02b586cc36fad58a622ecb439e1cf3a76a347207 (patch) | |
| tree | 11ec37daa234e19e9eb30e0370795e77e4ef418b /src/layout/par.rs | |
| parent | fd0b89a1d8e4f811fcf3517d321a327a0cf72edf (diff) | |
Add lots of Eq impls
Diffstat (limited to 'src/layout/par.rs')
| -rw-r--r-- | src/layout/par.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs index 34016737..5d21e05e 100644 --- a/src/layout/par.rs +++ b/src/layout/par.rs @@ -11,7 +11,7 @@ use crate::util::{RangeExt, SliceExt}; type Range = std::ops::Range<usize>; /// A node that arranges its children into a paragraph. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] #[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct ParNode { /// The inline direction of this paragraph. @@ -23,7 +23,7 @@ pub struct ParNode { } /// A child of a paragraph node. -#[derive(Clone, PartialEq)] +#[derive(Clone, Eq, PartialEq)] #[cfg_attr(feature = "layout-cache", derive(Hash))] pub enum ParChild { /// Spacing between other nodes. |
