Skip to content

Commit d0bc299

Browse files
committed
fix c-api
1 parent 42f1b65 commit d0bc299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/c-api/src/linker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ pub unsafe extern "C" fn wasmtime_linker_get(
204204
Err(_) => return false,
205205
};
206206
match linker.get(store, module, name) {
207-
Some(which) => {
207+
Ok(which) => {
208208
crate::initialize(item_ptr, which.into());
209209
true
210210
}
211-
None => false,
211+
Err(_) => false,
212212
}
213213
}
214214

0 commit comments

Comments
 (0)