mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Remove uninlineable function in PropertyDeclarationIterator.
That literally made no sense, and is probably leftover from where we passed Map directly there.
This commit is contained in:
parent
3b11145ef7
commit
f6e4c5547c
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue