aboutsummaryrefslogtreecommitdiff
path: root/src/yellow/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/yellow/builder.rs')
-rw-r--r--src/yellow/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yellow/builder.rs b/src/yellow/builder.rs
index 70869952c..878f3ba39 100644
--- a/src/yellow/builder.rs
+++ b/src/yellow/builder.rs
@@ -41,11 +41,11 @@ impl<'a> Sink<'a> for GreenBuilder<'a> {
41 41
42 fn finish_internal(&mut self) { 42 fn finish_internal(&mut self) {
43 let (kind, first_child) = self.parents.pop().unwrap(); 43 let (kind, first_child) = self.parents.pop().unwrap();
44 let children = self.children 44 let children: Vec<_> = self.children
45 .drain(first_child..) 45 .drain(first_child..)
46 .collect(); 46 .collect();
47 self.children.push( 47 self.children.push(
48 GreenNode::new_branch(kind, children) 48 GreenNode::new_branch(kind, children.into_boxed_slice())
49 ); 49 );
50 } 50 }
51 51