style: Remove some useless explicit dereferencing.

This commit is contained in:
Emilio Cobos Álvarez 2018-02-24 20:50:19 +01:00
parent adf1c9fcfd
commit 8d34aacb3b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -676,12 +676,12 @@ impl<E: TElement> StyleSharingCache<E> {
return None;
}
if *target.local_name() != *candidate.element.local_name() {
if target.local_name() != candidate.element.local_name() {
trace!("Miss: Local Name");
return None;
}
if *target.namespace() != *candidate.element.namespace() {
if target.namespace() != candidate.element.namespace() {
trace!("Miss: Namespace");
return None;
}