diff --git a/crates/mun_runtime_capi/src/lib.rs b/crates/mun_runtime_capi/src/lib.rs index 4aae863f0..f5ac3da6c 100644 --- a/crates/mun_runtime_capi/src/lib.rs +++ b/crates/mun_runtime_capi/src/lib.rs @@ -139,7 +139,7 @@ pub unsafe extern "C" fn mun_runtime_create( let runtime_options = runtime::RuntimeOptions { library_path: library_path.into(), - delay: Duration::from_millis(delay_ms as u64), + delay: Duration::from_millis(delay_ms.into()), user_functions, };