Skip to content

Commit

Permalink
Rewrite match arm
Browse files Browse the repository at this point in the history
  • Loading branch information
kulp committed Jun 20, 2020
1 parent 83f9088 commit f642741
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ir/var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ fn handle_function_macro(
// for a parenthesis token immediately adjacent to (that is,
// abutting) the first token in the macro definition.
match tokens.get(0..2) {
Some([a, b]) if is_abutting(&a, &b) && b.spelling() == b"(" => {
true
}
Some([a, b]) => is_abutting(&a, &b) && b.spelling() == b"(",
_ => false,
}
});
Expand Down

0 comments on commit f642741

Please sign in to comment.