Skip to content

Commit f642741

Browse files
committed
Rewrite match arm
1 parent 83f9088 commit f642741

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ir/var.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ fn handle_function_macro(
160160
// for a parenthesis token immediately adjacent to (that is,
161161
// abutting) the first token in the macro definition.
162162
match tokens.get(0..2) {
163-
Some([a, b]) if is_abutting(&a, &b) && b.spelling() == b"(" => {
164-
true
165-
}
163+
Some([a, b]) => is_abutting(&a, &b) && b.spelling() == b"(",
166164
_ => false,
167165
}
168166
});

0 commit comments

Comments
 (0)