diff --git a/lib/runtime-core/src/trampoline_x64.rs b/lib/runtime-core/src/trampoline_x64.rs index ccff1cae1..1fe5d674b 100644 --- a/lib/runtime-core/src/trampoline_x64.rs +++ b/lib/runtime-core/src/trampoline_x64.rs @@ -484,7 +484,7 @@ mod tests { } } - let expected = (0..=n as u64).fold(0u64, |a, b| a + b); + let expected = (0..=n as u64).sum(); prev = Some((ptr, expected)) } } diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 50780955d..ec1f580b4 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -330,7 +330,7 @@ impl<'a> ErasedFunc<'a> { Type::F32 => Value::F32(f32::from_bits(*args.offset(i as _) as u32)), Type::F64 => Value::F64(f64::from_bits(*args.offset(i as _) as u64)), Type::V128 => { - panic!("enter_host_polymorphic: 128-bit types are not supported") + todo!("enter_host_polymorphic: 128-bit types are not supported") } } })