diff --git a/substrate/client/executor/common/src/util.rs b/substrate/client/executor/common/src/util.rs index 995424bfa8..3ea29540f9 100644 --- a/substrate/client/executor/common/src/util.rs +++ b/substrate/client/executor/common/src/util.rs @@ -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(()) }) }