Fixed clippy warnings

This commit is contained in:
ccgauche 2020-12-14 18:31:01 +01:00
parent 248e8f7706
commit 69dba49884

View File

@ -168,7 +168,7 @@ fn reserve_wasm_memory_buffer<'a>(
instance
.exports
.get::<Func<'a, i32, i32>>("wasm_prepare_buffer")
.map_err(|e| MemoryAllocationError::AllocatorNotFound(e))?
.map_err(MemoryAllocationError::AllocatorNotFound)?
.call(value as i32)
.map_err(|e| MemoryAllocationError::CantAllocate(e))
.map_err(MemoryAllocationError::CantAllocate)
}