File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ error: it looks like you're manually copying between slices
58
58
--> $DIR/manual_memcpy.rs:94:14
59
59
|
60
60
LL | for i in from..from + src.len() {
61
- | ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[..(from + src.len() - from)])`
61
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..( from + src.len() )].clone_from_slice(&src[..(from + src.len() - from)])`
62
62
63
63
error: it looks like you're manually copying between slices
64
64
--> $DIR/manual_memcpy.rs:98:14
65
65
|
66
66
LL | for i in from..from + 3 {
67
- | ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[..(from + 3 - from)])`
67
+ | ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..( from + 3) ].clone_from_slice(&src[..(from + 3 - from)])`
68
68
69
69
error: it looks like you're manually copying between slices
70
70
--> $DIR/manual_memcpy.rs:103:14
@@ -106,7 +106,7 @@ error: it looks like you're manually copying between slices
106
106
--> $DIR/manual_memcpy.rs:145:14
107
107
|
108
108
LL | for i in 3..(3 + src.len()) {
109
- | ^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..(3 + src.len())].clone_from_slice(&src[..((3 + src.len()) - 3)])`
109
+ | ^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..(( 3 + src.len() ))].clone_from_slice(&src[..((3 + src.len()) - 3)])`
110
110
111
111
error: it looks like you're manually copying between slices
112
112
--> $DIR/manual_memcpy.rs:151:14
You can’t perform that action at this time.
0 commit comments