diff --git a/src/alloc_bytes.rs b/src/alloc_bytes.rs index 2927e2dceb..7952abdf9f 100644 --- a/src/alloc_bytes.rs +++ b/src/alloc_bytes.rs @@ -22,7 +22,7 @@ pub struct MiriAllocBytes { impl Clone for MiriAllocBytes { fn clone(&self) -> Self { - let bytes: Cow<'_, [u8]> = Cow::Borrowed(&*self); // TODO + let bytes: Cow<'_, [u8]> = Cow::Borrowed(self); let align = Align::from_bytes(self.layout.align().try_into().unwrap()).unwrap(); MiriAllocBytes::from_bytes(bytes, align) }