]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/get_last_with_len.rs
Rollup merge of #85760 - ChrisDenton:path-doc-platform-specific, r=m-ou-se
[rust.git] / src / tools / clippy / clippy_lints / src / get_last_with_len.rs
index cbcef567c53299d58f702f93a5ac9be9b7d4f499..3707e792177d3317408cb59dcf6c9c51022011d5 100644 (file)
@@ -51,7 +51,7 @@ impl<'tcx> LateLintPass<'tcx> for GetLastWithLen {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
         if_chain! {
             // Is a method call
-            if let ExprKind::MethodCall(ref path, _, ref args, _) = expr.kind;
+            if let ExprKind::MethodCall(path, _, args, _) = expr.kind;
 
             // Method name is "get"
             if path.ident.name == sym!(get);