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:
Bobby Holley 2017-08-02 15:42:57 -07:00
parent e07beacd4d
commit 5a421d7c5f
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}