diff --git a/clippy_lints/src/misc_early.rs b/clippy_lints/src/misc_early.rs index 94247e64b105..96a3250d272c 100644 --- a/clippy_lints/src/misc_early.rs +++ b/clippy_lints/src/misc_early.rs @@ -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 _ => () } diff --git a/clippy_lints/src/non_copy_const.rs b/clippy_lints/src/non_copy_const.rs index 5fcf54bc0152..47c84fec6ae1 100644 --- a/clippy_lints/src/non_copy_const.rs +++ b/clippy_lints/src/non_copy_const.rs @@ -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;