diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs index 54ffa4621fd..790b158a7e4 100644 --- a/components/style/properties/declaration_block.rs +++ b/components/style/properties/declaration_block.rs @@ -97,12 +97,7 @@ impl<'a> Iterator for PropertyDeclarationIterator<'a> { type Item = &'a PropertyDeclaration; #[inline] fn next(&mut self) -> Option<&'a PropertyDeclaration> { - // we use this function because a closure won't be `Clone` - fn get_declaration(dec: &(PropertyDeclaration, Importance)) - -> &PropertyDeclaration { - &dec.0 - } - self.iter.next().map(get_declaration as fn(_) -> _) + self.iter.next().map(|&(ref decl, _)| decl) } }