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:
Ivan Enderlin 2019-03-04 13:53:41 +01:00
parent 0c62693163
commit d9073c03c6

View File

@ -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]);