From 44363cd5d264f9bd214a3d87ad847dedf15e38e8 Mon Sep 17 00:00:00 2001 From: csmoe Date: Thu, 6 Jun 2019 10:06:46 +0800 Subject: fix: clean up warnings Change-Id: I91a468f6e846ac28574825b8ee7aa02fbff68f63 --- crates/ra_syntax/src/parsing/lexer/numbers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/parsing/lexer/numbers.rs b/crates/ra_syntax/src/parsing/lexer/numbers.rs index 7f6abe1d5..874fb8b32 100644 --- a/crates/ra_syntax/src/parsing/lexer/numbers.rs +++ b/crates/ra_syntax/src/parsing/lexer/numbers.rs @@ -16,7 +16,7 @@ pub(crate) fn scan_number(c: char, ptr: &mut Ptr) -> SyntaxKind { ptr.bump(); scan_digits(ptr, true); } - '0'...'9' | '_' | '.' | 'e' | 'E' => { + '0'..='9' | '_' | '.' | 'e' | 'E' => { scan_digits(ptr, true); } _ => return INT_NUMBER, @@ -47,10 +47,10 @@ pub(crate) fn scan_number(c: char, ptr: &mut Ptr) -> SyntaxKind { fn scan_digits(ptr: &mut Ptr, allow_hex: bool) { while let Some(c) = ptr.current() { match c { - '_' | '0'...'9' => { + '_' | '0'..='9' => { ptr.bump(); } - 'a'...'f' | 'A'...'F' if allow_hex => { + 'a'..='f' | 'A'..='F' if allow_hex => { ptr.bump(); } _ => return, -- cgit v1.2.3