mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
fix(runtime-core) hasher
does not need to be mutable.
This patch updates the `hasher` variable. It is declared as mutable, but it's never mutated.
This commit is contained in:
@ -48,7 +48,7 @@ impl WasmHash {
|
||||
let mut state = blake2bp::State::new();
|
||||
state.update(wasm);
|
||||
|
||||
let mut hasher = state.finalize();
|
||||
let hasher = state.finalize();
|
||||
let generic_array = hasher.as_bytes();
|
||||
|
||||
first_part.copy_from_slice(&generic_array[0..32]);
|
||||
|
Reference in New Issue
Block a user