servo: Merge #13093 - Remove unneeded clone in the style system cache (from ashrko619:cache-element-classnames); r=nox

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13089  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: db52d8a815a02be1f4f7e6270279235cec7005be
This commit is contained in:
Ashwin R 2016-08-28 05:55:56 -05:00
Родитель 81d1778140
Коммит 92775a4a3b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.