]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/manual_memcpy/with_loop_counters.stderr
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / manual_memcpy / with_loop_counters.stderr
index 0243158dec50747ee4a944b7c8b08bb35c177f9b..2e3ebadd7b5d2c580d2c89b09898d01b67f00adc 100644 (file)
@@ -43,7 +43,7 @@ LL | /     for i in 3..(3 + src.len()) {
 LL | |         dst[i] = src[count];
 LL | |         count += 1;
 LL | |     }
-   | |_____^ help: try replacing the loop by: `dst[3..(3 + src.len())].clone_from_slice(&src[..((3 + src.len()) - 3)]);`
+   | |_____^ help: try replacing the loop by: `dst[3..(3 + src.len())].clone_from_slice(&src[..(3 + src.len() - 3)]);`
 
 error: it looks like you're manually copying between slices
   --> $DIR/with_loop_counters.rs:35:5