Removed unneeded clone in the style system cache

This commit is contained in:
Ashwin R 2016-08-28 16:06:23 +05:30
parent a0f45c6850
commit 84eab314c9

View file

@ -388,7 +388,7 @@ fn have_same_class<E: TElement>(element: &E,
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.