Using many_elem twice is breaking the build.

This commit is contained in:
Tom Alexander 2022-12-10 20:58:58 -05:00
parent 95a043deef
commit 1efe2efc41
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ where
{ {
move |mut i: I| { move |mut i: I| {
let mut ret = Vec::new(); let mut ret = Vec::new();
let current_context = context.clone(); let mut current_context = context.clone();
loop { loop {
let len = i.input_len(); let len = i.input_len();
match till_matcher(&current_context, i.clone()) { match till_matcher(&current_context, i.clone()) {
@ -78,11 +78,11 @@ where
} }
ret.push(many_elem); ret.push(many_elem);
// current_context = current_context.with_additional_node( current_context = current_context.with_additional_node(
// ContextElement::PreviousElementNode(PreviousElementNode { ContextElement::PreviousElementNode(PreviousElementNode {
// element: many_elem.into(), element: many_elem.into(),
// }), }),
// ); );
i = remaining; i = remaining;
} }
} }