mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Removed unneeded clone in the style system cache
This commit is contained in:
parent
a0f45c6850
commit
84eab314c9
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ fn have_same_class<E: TElement>(element: &E,
|
||||||
candidate.class_attributes = Some(attrs)
|
candidate.class_attributes = Some(attrs)
|
||||||
}
|
}
|
||||||
|
|
||||||
element_class_attributes == candidate.class_attributes.clone().unwrap()
|
element_class_attributes == *candidate.class_attributes.as_ref().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: These re-match the candidate every time, which is suboptimal.
|
// TODO: These re-match the candidate every time, which is suboptimal.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue