From 99a0dabc1aeec652e2e0ca1c1a5f84b37c4f0ffa Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Wed, 14 May 2014 14:58:05 -0700 Subject: [PATCH] Don't check the field parameter in LayoutNode::eq. The chain field shouldn't be relevant for equality, since it is just a hack to artificially extend lifetimes. --- src/components/main/layout/wrapper.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/main/layout/wrapper.rs b/src/components/main/layout/wrapper.rs index 9f0d1e7bcae..88fc1ba5a1e 100644 --- a/src/components/main/layout/wrapper.rs +++ b/src/components/main/layout/wrapper.rs @@ -149,8 +149,7 @@ impl<'ln> Clone for LayoutNode<'ln> { impl<'a> Eq for LayoutNode<'a> { #[inline] fn eq(&self, other: &LayoutNode) -> bool { - self.node == other.node && - self.chain == other.chain + self.node == other.node } }