From e583b343950ae350946ba5d0c5469d3b330c6ce3 Mon Sep 17 00:00:00 2001 From: Strophox Date: Thu, 16 May 2024 12:13:59 +0200 Subject: [PATCH] fix clippy error on deref --- src/alloc_bytes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }