mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Update smallvec to 1.0.
Differential Revision: https://phabricator.services.mozilla.com/D56044
This commit is contained in:
parent
789ddd9dc1
commit
ad61cae6b0
12 changed files with 21 additions and 21 deletions
|
@ -180,7 +180,7 @@ fn top_down_dom<'a, 'scope, E, D>(
|
|||
let mut traversal_data_copy = traversal_data.clone();
|
||||
traversal_data_copy.current_dom_depth += 1;
|
||||
traverse_nodes(
|
||||
discovered_child_nodes.drain(),
|
||||
discovered_child_nodes.drain(..),
|
||||
DispatchMode::NotTailCall,
|
||||
recursion_ok,
|
||||
root,
|
||||
|
@ -210,7 +210,7 @@ fn top_down_dom<'a, 'scope, E, D>(
|
|||
if !discovered_child_nodes.is_empty() {
|
||||
traversal_data.current_dom_depth += 1;
|
||||
traverse_nodes(
|
||||
discovered_child_nodes.drain(),
|
||||
discovered_child_nodes.drain(..),
|
||||
DispatchMode::TailCall,
|
||||
recursion_ok,
|
||||
root,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue