We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49dff2c commit b17cb32Copy full SHA for b17cb32
clippy_lints/src/loops.rs
@@ -48,6 +48,12 @@ declare_clippy_lint! {
48
/// dst[i + 64] = src[i];
49
/// }
50
/// ```
51
+ /// Could be written as:
52
+ /// ```rust
53
+ /// # let src = vec![1];
54
+ /// # let mut dst = vec![0; 65];
55
+ /// dst[64..(src.len() + 64)].clone_from_slice(&src[..]);
56
+ /// ```
57
pub MANUAL_MEMCPY,
58
perf,
59
"manually copying items between slices"
0 commit comments