mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #18282 - emilio:moar-parsing, r=jdm
style: Remove uninlineable function in PropertyDeclarationIterator. That literally made no sense, and is probably leftover from where we passed Map directly there. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18282) <!-- Reviewable:end -->
This commit is contained in:
commit
9e2f243b4d
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