diff --git a/crates/mbe/src/syntax_bridge.rs b/crates/mbe/src/syntax_bridge.rs index 972e548d343..c7ffb0a41a5 100644 --- a/crates/mbe/src/syntax_bridge.rs +++ b/crates/mbe/src/syntax_bridge.rs @@ -675,13 +675,8 @@ fn next_token(&mut self) -> Option { } } } - } else { - match token { - syntax::NodeOrToken::Token(token) => { - return Some(token); - } - _ => (), - } + } else if let syntax::NodeOrToken::Token(token) = token { + return Some(token); } } WalkEvent::Leave(ele) => {