mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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;
|
type Item = &'a PropertyDeclaration;
|
||||||
#[inline]
|
#[inline]
|
||||||
fn next(&mut self) -> Option<&'a PropertyDeclaration> {
|
fn next(&mut self) -> Option<&'a PropertyDeclaration> {
|
||||||
// we use this function because a closure won't be `Clone`
|
self.iter.next().map(|&(ref decl, _)| decl)
|
||||||
fn get_declaration(dec: &(PropertyDeclaration, Importance))
|
|
||||||
-> &PropertyDeclaration {
|
|
||||||
&dec.0
|
|
||||||
}
|
|
||||||
self.iter.next().map(get_declaration as fn(_) -> _)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue