From 4fb58acafde3ca7020a980bd1e0a3585a47ca4f0 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 9 Jul 2021 10:27:45 +0200 Subject: [PATCH] Fix bound --- src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/mod.rs b/src/layout/mod.rs index bf6c80925..a07ccdc5d 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -114,7 +114,7 @@ impl AnyNode { #[cfg(not(feature = "layout-cache"))] pub fn new(node: T) -> Self where - T: Layout + Debug + Clone + PartialEq + 'static, + T: Layout + Debug + Clone + Eq + PartialEq + 'static, { Self { node: Box::new(node) } }