We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f0fd0 commit c4a87eeCopy full SHA for c4a87ee
crates/mbe/src/expander/matcher.rs
@@ -377,10 +377,10 @@ fn match_loop_inner<'t>(
377
let op = match item.dot.peek() {
378
None => {
379
// We are at or past the end of the matcher of `item`.
380
- if item.up.is_some() {
+ if let Some(up) = &item.up {
381
if item.sep_parsed.is_none() {
382
// Get the `up` matcher
383
- let mut new_pos = *item.up.clone().unwrap();
+ let mut new_pos = (**up).clone();
384
new_pos.bindings = bindings_builder.copy(&new_pos.bindings);
385
// Add matches from this repetition to the `matches` of `up`
386
bindings_builder.push_nested(&mut new_pos.bindings, &item.bindings);
0 commit comments