Skip to content

Commit e583b34

Browse files
committed
fix clippy error on deref
1 parent f323767 commit e583b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alloc_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct MiriAllocBytes {
2222

2323
impl Clone for MiriAllocBytes {
2424
fn clone(&self) -> Self {
25-
let bytes: Cow<'_, [u8]> = Cow::Borrowed(&*self); // TODO
25+
let bytes: Cow<'_, [u8]> = Cow::Borrowed(self);
2626
let align = Align::from_bytes(self.layout.align().try_into().unwrap()).unwrap();
2727
MiriAllocBytes::from_bytes(bytes, align)
2828
}

0 commit comments

Comments
 (0)