From 69dba49884fcd8318167899a6a21bfc7bd6caf16 Mon Sep 17 00:00:00 2001 From: ccgauche Date: Mon, 14 Dec 2020 18:31:01 +0100 Subject: [PATCH] Fixed clippy warnings --- common/sys/src/plugin/module.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sys/src/plugin/module.rs b/common/sys/src/plugin/module.rs index 8920ff08b6..120173b421 100644 --- a/common/sys/src/plugin/module.rs +++ b/common/sys/src/plugin/module.rs @@ -168,7 +168,7 @@ fn reserve_wasm_memory_buffer<'a>( instance .exports .get::>("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) } \ No newline at end of file