Skip to content

Commit 0d3153c

Browse files
committed
Fix a warning about unnecessary mut in AutoAssertNoGc
1 parent b32130d commit 0d3153c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/wasmtime/src/store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ where
305305
T: std::ops::DerefMut<Target = StoreOpaque>,
306306
{
307307
pub fn new(mut store: T) -> Self {
308+
drop(&mut store);
308309
#[cfg(debug_assertions)]
309310
{
310311
let prev_okay = store.externref_activations_table.set_gc_okay(false);

0 commit comments

Comments
 (0)