mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
309c9db2ac
commit
99a0dabc1a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue