Fix a warning about unnecessary mut in AutoAssertNoGc

This commit is contained in:
Nick Fitzgerald
2021-09-17 11:06:14 -07:00
parent b32130d0aa
commit 0d3153c16b

View File

@@ -305,6 +305,7 @@ where
T: std::ops::DerefMut<Target = StoreOpaque>,
{
pub fn new(mut store: T) -> Self {
drop(&mut store);
#[cfg(debug_assertions)]
{
let prev_okay = store.externref_activations_table.set_gc_okay(false);