Skip to content

Commit

Permalink
fix: Address compiler warning
Browse files Browse the repository at this point in the history
`clone` is a noop here, and it doesn't look like making a copy of the
underlying array (which was presumably intended?) is neccessary.
  • Loading branch information
Mira Ressel committed Oct 9, 2023
1 parent 64bd1b8 commit 16a5b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/contracts/src/wasm/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl LoadedModule {

let engine = Engine::new(&config);
let module =
Module::new(&engine, code.clone()).map_err(|_| "Can't load the module into wasmi!")?;
Module::new(&engine, code).map_err(|_| "Can't load the module into wasmi!")?;

// Return a `LoadedModule` instance with
// __valid__ module.
Expand Down

0 comments on commit 16a5b68

Please sign in to comment.