From f6427412eb142e0682c9f4b8970860e87791dab0 Mon Sep 17 00:00:00 2001 From: Darren Kulp Date: Sat, 20 Jun 2020 13:14:37 -0700 Subject: [PATCH] Rewrite match arm --- src/ir/var.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ir/var.rs b/src/ir/var.rs index 2a5495b53d..de16e8e4e9 100644 --- a/src/ir/var.rs +++ b/src/ir/var.rs @@ -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, } });