From c1a61b992d4dd9c90d5b2e44be9162e30e5e5ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Thu, 5 Jan 2023 06:43:54 +0100 Subject: [PATCH] Scanner - Style clean-up --- src/scanner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.rs b/src/scanner.rs index f49c782..94ee570 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -145,7 +145,7 @@ impl Scanner { // Identifiers ch if ch.is_ascii_alphabetic() => self.identifier(), // Anything else is an error - _ => return self.error("unexpected character".to_owned()), + _ => self.error("unexpected character".to_owned()), } }