]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/zero_sized_map_values.rs
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / clippy_lints / src / zero_sized_map_values.rs
index 5e9ffab7dfbcaca020362052bade40ef30d9c6f0..319b85ac42a805d29336cff18f3196eb3206fa30 100644 (file)
@@ -64,7 +64,7 @@ fn check_ty(&mut self, cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>) {
 fn in_trait_impl(cx: &LateContext<'_>, hir_id: HirId) -> bool {
     let parent_id = cx.tcx.hir().get_parent_item(hir_id);
     if let Some(Node::Item(item)) = cx.tcx.hir().find(cx.tcx.hir().get_parent_item(parent_id)) {
-        if let ItemKind::Impl { of_trait: Some(_), .. } = item.kind {
+        if let ItemKind::Impl(hir::Impl { of_trait: Some(_), .. }) = item.kind {
             return true;
         }
     }