]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/inherent_impl.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / inherent_impl.rs
index 254d3f8a4d0f901a672585236c66e19819d963a5..6a031a627df946669e206ae77fb2255d21bf71e4 100644 (file)
@@ -119,7 +119,7 @@ impl<'tcx> LateLintPass<'tcx> for MultipleInherentImpl {
 fn get_impl_span(cx: &LateContext<'_>, id: LocalDefId) -> Option<Span> {
     let id = cx.tcx.hir().local_def_id_to_hir_id(id);
     if let Node::Item(&Item {
-        kind: ItemKind::Impl(ref impl_item),
+        kind: ItemKind::Impl(impl_item),
         span,
         ..
     }) = cx.tcx.hir().get(id)