diff --git a/lib/clif-backend/src/resolver.rs b/lib/clif-backend/src/resolver.rs index 53b3a789a..dce331b58 100644 --- a/lib/clif-backend/src/resolver.rs +++ b/lib/clif-backend/src/resolver.rs @@ -94,7 +94,6 @@ impl FuncResolverBuilder { info: &ModuleInfo, ) -> CompileResult<(Self, HandlerData)> { let num_func_bodies = function_bodies.len(); - let mut compiled_functions: Vec<(Vec, RelocSink)> = Vec::with_capacity(num_func_bodies); let mut local_relocs = Map::with_capacity(num_func_bodies); let mut external_relocs = Map::with_capacity(num_func_bodies); diff --git a/lib/runtime-core/src/cache.rs b/lib/runtime-core/src/cache.rs index 339b78fcc..1cb804655 100644 --- a/lib/runtime-core/src/cache.rs +++ b/lib/runtime-core/src/cache.rs @@ -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]); diff --git a/lib/runtime-core/src/error.rs b/lib/runtime-core/src/error.rs index abc69cc5e..0e2ab6eb7 100644 --- a/lib/runtime-core/src/error.rs +++ b/lib/runtime-core/src/error.rs @@ -1,4 +1,3 @@ -use crate::sys::Memory; use crate::types::{ FuncSig, GlobalDescriptor, MemoryDescriptor, MemoryIndex, TableDescriptor, TableIndex, Type, };