Skip to content

Commit

Permalink
fix clippy error on deref
Browse files Browse the repository at this point in the history
  • Loading branch information
Strophox committed May 16, 2024
1 parent f323767 commit e583b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alloc_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e583b34

Please sign in to comment.