]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/len_zero.rs
Rollup merge of #76082 - jyn514:top-level-links, r=ollie27,GuillaumeGomez
[rust.git] / src / tools / clippy / clippy_lints / src / len_zero.rs
index b691d363d2f2165ca03be278f0706a82f018e0bb..42a98dc963d2084cfe93eca9ac759608bcbfd5d4 100644 (file)
@@ -286,7 +286,7 @@ fn has_is_empty_impl(cx: &LateContext<'_>, id: DefId) -> bool {
     }
 
     let ty = &walk_ptrs_ty(cx.typeck_results().expr_ty(expr));
-    match ty.kind {
+    match ty.kind() {
         ty::Dynamic(ref tt, ..) => tt.principal().map_or(false, |principal| {
             cx.tcx
                 .associated_items(principal.def_id())