From ac9c3259bf044105765db1458304c9fcf137c633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Thei=C3=9Fen?= Date: Tue, 24 Aug 2021 11:54:30 +0200 Subject: [PATCH] Remove useless borrow (#9615) --- substrate/client/executor/common/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()) }) }