Fix warnings
This commit is contained in:
parent
656b26ea4f
commit
b7d95f486b
@ -371,8 +371,8 @@ impl MiscEarly {
|
||||
let mut seen = (false, false);
|
||||
for ch in src.chars() {
|
||||
match ch {
|
||||
'a' ... 'f' => seen.0 = true,
|
||||
'A' ... 'F' => seen.1 = true,
|
||||
'a' ..= 'f' => seen.0 = true,
|
||||
'A' ..= 'F' => seen.1 = true,
|
||||
'i' | 'u' => break, // start of suffix already
|
||||
_ => ()
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
use rustc::lint::{LateContext, LateLintPass, Lint, LintArray, LintPass};
|
||||
use rustc::hir::*;
|
||||
use rustc::hir::def::Def;
|
||||
use rustc::ty::{self, TyRef, TypeFlags};
|
||||
use rustc::ty::{self, TypeFlags};
|
||||
use rustc::ty::adjustment::Adjust;
|
||||
use rustc_errors::Applicability;
|
||||
use rustc_typeck::hir_ty_to_ty;
|
||||
|
Loading…
x
Reference in New Issue
Block a user