Concise-ify code

This commit is contained in:
greg 2017-09-11 02:07:48 -07:00
parent 741e5f7f9b
commit 0dabbc700b

View File

@ -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)