mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix clone-on-copy warnings (#31877)
This commit is contained in:
parent
5f7baf31c2
commit
b55d0a2053
9 changed files with 41 additions and 47 deletions
|
@ -65,7 +65,7 @@ unsafe fn read_blob(
|
|||
&mut index as *mut u32
|
||||
));
|
||||
let storage_key = StorageKey { index, name_space };
|
||||
if <Blob as Serializable>::deserialize(owner, sc_holder, storage_key.clone()).is_ok() {
|
||||
if <Blob as Serializable>::deserialize(owner, sc_holder, storage_key).is_ok() {
|
||||
let blobs = match sc_holder {
|
||||
StructuredDataHolder::Read { blobs, .. } => blobs,
|
||||
_ => panic!("Unexpected variant of StructuredDataHolder"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue