diff options
Diffstat (limited to 'src/layout/background.rs')
| -rw-r--r-- | src/layout/background.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/background.rs b/src/layout/background.rs index 8390a756..013a887a 100644 --- a/src/layout/background.rs +++ b/src/layout/background.rs @@ -1,7 +1,8 @@ use super::*; /// A node that places a rectangular filled background behind its child. -#[derive(Debug, Clone, PartialEq, Hash)] +#[derive(Debug, Clone, PartialEq)] +#[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct BackgroundNode { /// The kind of shape to use as a background. pub shape: BackgroundShape, |
