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.
This commit is contained in:
Cameron Zwarich 2014-05-14 14:58:05 -07:00
parent 309c9db2ac
commit 99a0dabc1a

View file

@ -149,8 +149,7 @@ impl<'ln> Clone for LayoutNode<'ln> {
impl<'a> Eq for LayoutNode<'a> { impl<'a> Eq for LayoutNode<'a> {
#[inline] #[inline]
fn eq(&self, other: &LayoutNode) -> bool { fn eq(&self, other: &LayoutNode) -> bool {
self.node == other.node && self.node == other.node
self.chain == other.chain
} }
} }