diff options
author | Christopher Durham <[email protected]> | 2018-01-27 23:31:23 +0000 |
---|---|---|
committer | Christopher Durham <[email protected]> | 2018-01-27 23:31:23 +0000 |
commit | 4de3c97b2afea55834cd16368f950133459d8c73 (patch) | |
tree | 9091b5dc1b116e5cbb47a535ffa922e66776c800 /src/lexer/numbers.rs | |
parent | 357cd3358167daa38f3ff34d225e1501faff6015 (diff) |
Enforce rustfmt format
Diffstat (limited to 'src/lexer/numbers.rs')
-rw-r--r-- | src/lexer/numbers.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lexer/numbers.rs b/src/lexer/numbers.rs index 4c7edfe1c..95e42246f 100644 --- a/src/lexer/numbers.rs +++ b/src/lexer/numbers.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | use lexer::ptr::Ptr; | 1 | use lexer::ptr::Ptr; |
2 | use lexer::classes::*; | 2 | use lexer::classes::*; |
3 | 3 | ||
4 | use {SyntaxKind}; | 4 | use SyntaxKind; |
5 | use syntax_kinds::*; | 5 | use syntax_kinds::*; |
6 | 6 | ||
7 | pub(crate) fn scan_number(c: char, ptr: &mut Ptr) -> SyntaxKind { | 7 | pub(crate) fn scan_number(c: char, ptr: &mut Ptr) -> SyntaxKind { |
@@ -49,10 +49,10 @@ fn scan_digits(ptr: &mut Ptr, allow_hex: bool) { | |||
49 | '_' | '0'...'9' => { | 49 | '_' | '0'...'9' => { |
50 | ptr.bump(); | 50 | ptr.bump(); |
51 | } | 51 | } |
52 | 'a'...'f' | 'A' ... 'F' if allow_hex => { | 52 | 'a'...'f' | 'A'...'F' if allow_hex => { |
53 | ptr.bump(); | 53 | ptr.bump(); |
54 | } | 54 | } |
55 | _ => return | 55 | _ => return, |
56 | } | 56 | } |
57 | } | 57 | } |
58 | } | 58 | } |