Skip to content

Commit 99f8607

Browse files
committed
remove unused imports
1 parent c711de2 commit 99f8607

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/methods/into_iter_on_ref.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use rustc_hir as hir;
44
use rustc_lint::LateContext;
55
use rustc_middle::ty::{self, Ty};
66
use rustc_span::source_map::Span;
7+
use rustc_span::symbol::Symbol;
78

89
use super::INTO_ITER_ON_REF;
910

@@ -27,7 +28,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, self_ref_ty: Ty<
2728
}
2829
}
2930

30-
fn ty_has_iter_method(cx: &LateContext<'_>, self_ref_ty: Ty<'_>) -> Option<(&'static str, &'static str)> {
31+
fn ty_has_iter_method(cx: &LateContext<'_>, self_ref_ty: Ty<'_>) -> Option<(Symbol, &'static str)> {
3132
has_iter_method(cx, self_ref_ty).map(|ty_name| {
3233
let mutbl = match self_ref_ty.kind() {
3334
ty::Ref(_, _, mutbl) => mutbl,

clippy_lints/src/methods/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ use rustc_middle::lint::in_external_macro;
6262
use rustc_middle::ty::{self, TraitRef, Ty, TyS};
6363
use rustc_semver::RustcVersion;
6464
use rustc_session::{declare_tool_lint, impl_lint_pass};
65-
use rustc_span::source_map::Span;
66-
use rustc_span::symbol::{sym, Symbol, SymbolStr};
65+
use rustc_span::symbol::{sym, SymbolStr};
6766
use rustc_typeck::hir_ty_to_ty;
6867

6968
use crate::utils::{

0 commit comments

Comments
 (0)