Merge branch 'master' into fix/c-api-fix-imports

This commit is contained in:
Mackenzie Clark 2019-03-04 08:14:14 -08:00 committed by GitHub
commit 71d7fe7d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -94,7 +94,6 @@ impl FuncResolverBuilder {
info: &ModuleInfo,
) -> CompileResult<(Self, HandlerData)> {
let num_func_bodies = function_bodies.len();
let mut compiled_functions: Vec<(Vec<u8>, 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);

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

View File

@ -1,4 +1,3 @@
use crate::sys::Memory;
use crate::types::{
FuncSig, GlobalDescriptor, MemoryDescriptor, MemoryIndex, TableDescriptor, TableIndex, Type,
};