]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/identity_op.rs
Auto merge of #84071 - nagisa:nixos-patching-fix, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / clippy_lints / src / identity_op.rs
index 8bed5e1bf640edfc03a47023a64b72bd274bbbec..366b3b46a8aecdc0f9939b68f7424c5dc3083924 100644 (file)
@@ -35,7 +35,7 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
         if e.span.from_expansion() {
             return;
         }
-        if let ExprKind::Binary(cmp, ref left, ref right) = e.kind {
+        if let ExprKind::Binary(cmp, left, right) = e.kind {
             if is_allowed(cx, cmp, left, right) {
                 return;
             }