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

Commit

Permalink
Remove useless borrow (#9615)
Browse files Browse the repository at this point in the history
  • Loading branch information
athei authored Aug 24, 2021
1 parent ed702e8 commit 16e17ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/executor/common/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
})
}
Expand Down

0 comments on commit 16e17ae

Please sign in to comment.