]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/get_last_with_len.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / get_last_with_len.rs
index 3707e792177d3317408cb59dcf6c9c51022011d5..8e45fdfecc447a641ec2882c80f41a2fe779f88b 100644 (file)
@@ -74,7 +74,7 @@ impl<'tcx> LateLintPass<'tcx> for GetLastWithLen {
 
             // LHS of subtraction is "x.len()"
             if let ExprKind::MethodCall(arg_lhs_path, _, lhs_args, _) = &lhs.kind;
-            if arg_lhs_path.ident.name == sym!(len);
+            if arg_lhs_path.ident.name == sym::len;
             if let Some(arg_lhs_struct) = lhs_args.get(0);
 
             // The two vectors referenced (x in x.get(...) and in x.len())