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/grid.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/layout/grid.rs') diff --git a/src/layout/grid.rs b/src/layout/grid.rs index 33fce064..b0bf225f 100644 --- a/src/layout/grid.rs +++ b/src/layout/grid.rs @@ -1,7 +1,8 @@ use super::*; /// A node that arranges its children in a grid. -#[derive(Debug, Clone, PartialEq, Hash)] +#[derive(Debug, Clone, PartialEq)] +#[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct GridNode { /// The `main` and `cross` directions of this grid. /// -- cgit v1.2.3