mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Remove useless borrow (#9615)
This commit is contained in:
committed by
GitHub
parent
84452e8c60
commit
ac9c3259bf
@@ -105,7 +105,7 @@ pub mod wasmi {
|
||||
let range = checked_range(dest_addr.into(), source.len(), destination.len())
|
||||
.ok_or_else(|| Error::Other("memory write is out of bounds".into()))?;
|
||||
|
||||
&mut destination[range].copy_from_slice(source);
|
||||
destination[range].copy_from_slice(source);
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user