diff --git a/lib/api/src/externals/memory.rs b/lib/api/src/externals/memory.rs index 78862d5dd..79d2ff2aa 100644 --- a/lib/api/src/externals/memory.rs +++ b/lib/api/src/externals/memory.rs @@ -153,7 +153,7 @@ impl Memory { return None; } self.try_clone(&store) - .and_then(|mut memory| memory.duplicate().ok()) + .and_then(|memory| memory.duplicate().ok()) .map(|new_memory| Self::new_from_existing(new_store, new_memory.into())) }