]> git.lizzy.rs Git - rust.git/commitdiff
redundant_clone: fix comment
authorlyj <sjtu5140809011@gmail.com>
Wed, 9 Jun 2021 07:25:48 +0000 (15:25 +0800)
committerlyj <sjtu5140809011@gmail.com>
Wed, 9 Jun 2021 07:25:48 +0000 (15:25 +0800)
clippy_lints/src/redundant_clone.rs

index 19650c41b840a20889aa8bc2240d8d1e47863547..380557c81a19a9d1162e5fb0b3ad03784846664a 100644 (file)
@@ -132,7 +132,7 @@ fn check_fn(
                 }
             }
 
-            // `{ 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 {