diff --git a/moli-file-api/src/blob_store.rs b/moli-file-api/src/blob_store.rs index e99a2763e8a..50c314b7568 100644 --- a/moli-file-api/src/blob_store.rs +++ b/moli-file-api/src/blob_store.rs @@ -750,11 +750,11 @@ mod tests { let ObjectUrlData::Blob { bytes: captured_bytes, mime_type, - } = &captured.data; + } = captured.data; let ObjectUrlData::Blob { bytes: other_bytes, .. - } = &other.data; - assert!(Arc::ptr_eq(captured_bytes, other_bytes)); + } = other.data; + assert!(Arc::ptr_eq(&captured_bytes, &other_bytes)); assert_eq!(captured.access_key.as_ref(), Some(&first_key)); assert_eq!(other.access_key.as_ref(), Some(&second_key)); assert_eq!( @@ -766,7 +766,7 @@ mod tests { assert!(store.revoke_object_url_with_access_key(&second, &second_key)); assert!(store.object_url_entry(&first).is_none()); assert!(store.blob_bytes(blob).is_none()); - assert_eq!(&**captured_bytes, b"private"); + assert_eq!(&*captured_bytes, b"private"); assert_eq!(mime_type, "text/plain"); assert_eq!(captured.access_key.as_ref(), Some(&first_key)); }