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 8f28684 commit 3ad763aCopy full SHA for 3ad763a
src/memcpy/memcpy_trivial.rs
@@ -2,6 +2,6 @@ pub unsafe fn memcpy(dst: *mut u8, src: *const u8, bytes: usize) {
2
for i in 0..bytes {
3
let dst_byte = dst.add(i);
4
let src_byte = src.add(i);
5
- dst_byte.write(*src_byte);
+ *dst_byte = *src_byte;
6
}
7
0 commit comments