From 0dabbc700b47eb4451be83606f03f0f61a1653a3 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 11 Sep 2017 02:07:48 -0700 Subject: [PATCH] Concise-ify code --- src/schala_lang/parsing.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index b9c6646..de72466 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -451,11 +451,10 @@ impl Parser { use self::TokenType::*; let mut ds = String::new(); loop { - let xxx = self.next(); - match xxx { + match self.next() { Underscore => continue, DigitGroup(ref s) => ds.push_str(s), - x => break, + _ => break, } } Ok(ds)