From f6e4c5547ceae3053f51035b567899b32152cf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 28 Aug 2017 21:24:06 +0200 Subject: [PATCH] style: Remove uninlineable function in PropertyDeclarationIterator. That literally made no sense, and is probably leftover from where we passed Map directly there. --- components/style/properties/declaration_block.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) } }