diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-12-15 21:22:24 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-12-16 14:23:56 +0100 |
commit | ad61cae6b069461edcde1e240aee6608ded46aa2 (patch) | |
tree | 551cc1b73fab100d1c88b12d9df7c94264650f50 /components/style/rule_tree/mod.rs | |
parent | 789ddd9dc12fa9a54dc4acf6a80298ebf5e728ee (diff) | |
download | servo-ad61cae6b069461edcde1e240aee6608ded46aa2.tar.gz servo-ad61cae6b069461edcde1e240aee6608ded46aa2.zip |
style: Update smallvec to 1.0.
Differential Revision: https://phabricator.services.mozilla.com/D56044
Diffstat (limited to 'components/style/rule_tree/mod.rs')
-rw-r--r-- | components/style/rule_tree/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index 7cb153de375..0925e0f1c5b 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -345,7 +345,7 @@ impl RuleTree { important_author.sort_by_key(|&(_, order)| -order); } - for (source, shadow_cascade_order) in important_author.drain() { + for (source, shadow_cascade_order) in important_author.drain(..) { current = current.ensure_child( self.root.downgrade(), source, @@ -355,11 +355,11 @@ impl RuleTree { ); } - for source in important_user.drain() { + for source in important_user.drain(..) { current = current.ensure_child(self.root.downgrade(), source, UserImportant); } - for source in important_ua.drain() { + for source in important_ua.drain(..) { current = current.ensure_child(self.root.downgrade(), source, UAImportant); } @@ -378,7 +378,7 @@ impl RuleTree { guards: &StylesheetGuards, ) -> StrongRuleNode { self.insert_ordered_rules_with_important( - applicable_declarations.drain().map(|d| d.for_rule_tree()), + applicable_declarations.drain(..).map(|d| d.for_rule_tree()), guards, ) } @@ -556,7 +556,7 @@ impl RuleTree { // Now the rule is in the relevant place, push the children as // necessary. - let rule = self.insert_ordered_rules_from(current, children.drain().rev()); + let rule = self.insert_ordered_rules_from(current, children.drain(..).rev()); Some(rule) } @@ -593,7 +593,7 @@ impl RuleTree { } let rule = - self.insert_ordered_rules_from(last.parent().unwrap().clone(), children.drain().rev()); + self.insert_ordered_rules_from(last.parent().unwrap().clone(), children.drain(..).rev()); rule } |