Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 16e17ae

Browse files
authored
Remove useless borrow (#9615)
1 parent ed702e8 commit 16e17ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/executor/common/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub mod wasmi {
105105
let range = checked_range(dest_addr.into(), source.len(), destination.len())
106106
.ok_or_else(|| Error::Other("memory write is out of bounds".into()))?;
107107

108-
&mut destination[range].copy_from_slice(source);
108+
destination[range].copy_from_slice(source);
109109
Ok(())
110110
})
111111
}

0 commit comments

Comments
 (0)