mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use drain() over IntoIter on a few SmallVecs.
This is all the ones I could find in style/ and selectors/.
This commit is contained in:
parent
e07beacd4d
commit
5a421d7c5f
2 changed files with 2 additions and 2 deletions
|
@ -1528,7 +1528,7 @@ fn parse_compound_selector<'i, 't, P, E, Impl>(
|
|||
}
|
||||
|
||||
builder.push_simple_selector(Component::PseudoElement(p));
|
||||
for state_selector in state_selectors.into_iter() {
|
||||
for state_selector in state_selectors.drain() {
|
||||
builder.push_simple_selector(state_selector);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue