diff options
-rw-r--r-- | components/style/properties/properties.mako.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 4a7efc2755c..8b9ab40a4dc 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1802,13 +1802,10 @@ pub fn apply_declarations<'a, F, I>(viewport_size: Size2D<Au>, let mut custom_properties = None; let mut seen_custom = HashSet::new(); for declaration in iter_declarations() { - match *declaration { - PropertyDeclaration::Custom(ref name, ref value) => { - ::custom_properties::cascade( - &mut custom_properties, &inherited_custom_properties, - &mut seen_custom, name, value) - } - _ => {} + if let PropertyDeclaration::Custom(ref name, ref value) = *declaration { + ::custom_properties::cascade( + &mut custom_properties, &inherited_custom_properties, + &mut seen_custom, name, value) } } |