From 21d919e2d2a38802ba96003597eadb68342d71ef Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Tue, 29 Jun 2021 12:33:24 +0200 Subject: Put incremental compilation behind feature --- src/layout/background.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/layout/background.rs') 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, -- cgit v1.2.3