about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-10 00:54:25 +0000
committerbors <bors@rust-lang.org>2021-06-10 00:54:25 +0000
commitce7b872341286b358b5c07106497735ce477f7e1 (patch)
tree83ca1c7e4950102d4cc52e15ea13a3463a7a84a4
parentc4636abe7270a76b0fe85a1b66be3d646607313d (diff)
parentfe549f711a002ddf6a509ff0bd4b17d271a7c1df (diff)
downloadrust-ce7b872341286b358b5c07106497735ce477f7e1.tar.gz
rust-ce7b872341286b358b5c07106497735ce477f7e1.zip
Auto merge of #7332 - lengyijun:redundant_clone_fix, r=giraffate
redundant_clone: fix comment

changelog: none
-rw-r--r--clippy_lints/src/redundant_clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs
index 19650c41b84..380557c81a1 100644
--- a/clippy_lints/src/redundant_clone.rs
+++ b/clippy_lints/src/redundant_clone.rs
@@ -132,7 +132,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
                 }
             }
 
-            // `{ cloned = &arg; clone(move cloned); }` or `{ cloned = &arg; to_path_buf(cloned); }`
+            // `{ arg = &cloned; clone(move arg); }` or `{ arg = &cloned; to_path_buf(arg); }`
             let (cloned, cannot_move_out) = unwrap_or_continue!(find_stmt_assigns_to(cx, mir, arg, from_borrow, bb));
 
             let loc = mir::Location {