style: Use PrecomputedHasher for custom properties.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-29 22:32:42 +02:00
parent 497897ffc9
commit b7b22b76a8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 69 additions and 61 deletions

View file

@ -693,8 +693,7 @@ impl PropertyDeclarationBlock {
inherited_custom_properties: Option<Arc<::custom_properties::CustomPropertiesMap>>,
) -> Option<Arc<::custom_properties::CustomPropertiesMap>> {
let mut custom_properties = None;
// FIXME: Use PrecomputedHasher instead.
let mut seen_custom = HashSet::new();
let mut seen_custom = PrecomputedHashSet::default();
for declaration in self.normal_declaration_iter() {
if let PropertyDeclaration::Custom(ref name, ref value) = *declaration {