Skip to content

Commit b7d95f4

Browse files
committed
Fix warnings
1 parent 656b26e commit b7d95f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/misc_early.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ impl MiscEarly {
371371
let mut seen = (false, false);
372372
for ch in src.chars() {
373373
match ch {
374-
'a' ... 'f' => seen.0 = true,
375-
'A' ... 'F' => seen.1 = true,
374+
'a' ..= 'f' => seen.0 = true,
375+
'A' ..= 'F' => seen.1 = true,
376376
'i' | 'u' => break, // start of suffix already
377377
_ => ()
378378
}

clippy_lints/src/non_copy_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use rustc::lint::{LateContext, LateLintPass, Lint, LintArray, LintPass};
66
use rustc::hir::*;
77
use rustc::hir::def::Def;
8-
use rustc::ty::{self, TyRef, TypeFlags};
8+
use rustc::ty::{self, TypeFlags};
99
use rustc::ty::adjustment::Adjust;
1010
use rustc_errors::Applicability;
1111
use rustc_typeck::hir_ty_to_ty;

0 commit comments

Comments
 (0)