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 f323767 commit e583b34Copy full SHA for e583b34
src/alloc_bytes.rs
@@ -22,7 +22,7 @@ pub struct MiriAllocBytes {
22
23
impl Clone for MiriAllocBytes {
24
fn clone(&self) -> Self {
25
- let bytes: Cow<'_, [u8]> = Cow::Borrowed(&*self); // TODO
+ let bytes: Cow<'_, [u8]> = Cow::Borrowed(self);
26
let align = Align::from_bytes(self.layout.align().try_into().unwrap()).unwrap();
27
MiriAllocBytes::from_bytes(bytes, align)
28
}
0 commit comments