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 b743e60 commit eddd29fCopy full SHA for eddd29f
src/lib.rs
@@ -532,7 +532,7 @@ impl OwnedCursor {
532
533
// SAFETY: we do not de-initialize any of the elements of the slice
534
unsafe {
535
- MaybeUninit::write_slice(&mut self.as_mut()[..data.len()], data);
+ MaybeUninit::copy_from_slice(&mut self.as_mut()[..data.len()], data);
536
}
537
538
// SAFETY: We just added the entire contents of data.
0 commit comments