Skip to content

Commit fff3c0a

Browse files
committed
fix wasmtime-fuzzing
1 parent 51a7f84 commit fff3c0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/fuzzing/src/oracles.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,14 +771,14 @@ fn alloc_externref<T>(store: &mut impl AsContextMut, value: T) -> Result<Rooted<
771771
where
772772
T: Send + Sync + 'static,
773773
{
774-
let store = store.as_context_mut();
775-
match ExternRef::new(store, value) {
774+
let mut store = store.as_context_mut();
775+
match ExternRef::new(&mut store, value) {
776776
Ok(x) => Ok(x),
777777
Err(e) => match e.downcast::<GcHeapOutOfMemory<T>>() {
778778
Ok(oom) => {
779779
let (value, oom) = oom.take_inner();
780780
store.gc(Some(&oom));
781-
ExternRef::new(store, value)
781+
ExternRef::new(&mut store, value)
782782
}
783783
Err(e) => Err(e),
784784
},

0 commit comments

Comments
 (0)