mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
fix(c-api) Remove a debug_assert macro.
This commit is contained in:
@@ -46,8 +46,6 @@ pub unsafe extern "C" fn wasm_instance_new(
|
||||
let mut traps: Vec<*mut wasm_trap_t> = Vec::with_capacity(1);
|
||||
traps.push(Box::into_raw(trap));
|
||||
|
||||
debug_assert!(traps.len() == traps.capacity());
|
||||
|
||||
let pointer = traps.as_mut_ptr();
|
||||
mem::forget(traps);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user