Skip to content

Commit 59ee6a8

Browse files
committed
Remove duplicate context check
1 parent c433d54 commit 59ee6a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clippy_lints/src/use_self.rs

-3
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
214214
hir_ty_to_ty(cx.tcx, hir_ty)
215215
};
216216
if same_type_and_consts(ty, cx.tcx.type_of(impl_id));
217-
let hir = cx.tcx.hir();
218-
// prevents false positive on `#[derive(serde::Deserialize)]`
219-
if !hir.span(hir.get_parent_node(hir_ty.hir_id)).in_derive_expansion();
220217
then {
221218
span_lint(cx, hir_ty.span);
222219
}

0 commit comments

Comments
 (0)