From 04a03fc5247d5f20ecef432b51befec040550dc4 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 7 Sep 2022 10:36:44 +0200 Subject: [PATCH] Fixed clippy warning on using Self --- lib/vm/src/memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vm/src/memory.rs b/lib/vm/src/memory.rs index 99d69d9e3..c4370d474 100644 --- a/lib/vm/src/memory.rs +++ b/lib/vm/src/memory.rs @@ -453,7 +453,7 @@ impl VMMemory { /// /// This creates a `Memory` with owned metadata: this can be used to create a memory /// that will be imported into Wasm modules. - pub fn new(memory: &MemoryType, style: &MemoryStyle) -> Result { + pub fn new(memory: &MemoryType, style: &MemoryStyle) -> Result { Ok(if memory.shared { Self(Box::new(VMSharedMemory::new(memory, style)?)) } else { @@ -477,7 +477,7 @@ impl VMMemory { memory: &MemoryType, style: &MemoryStyle, vm_memory_location: NonNull, - ) -> Result { + ) -> Result { Ok(if memory.shared { Self(Box::new(VMSharedMemory::from_definition( memory,