mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +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:
parent
0c62693163
commit
d9073c03c6
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user