diff --git a/tests/all/limits.rs b/tests/all/limits.rs index 3e276d8c81..2849325ed2 100644 --- a/tests/all/limits.rs +++ b/tests/all/limits.rs @@ -1,4 +1,4 @@ -use anyhow::{bail, Result}; +use anyhow::Result; use wasmtime::*; const WASM_PAGE_SIZE: usize = wasmtime_environ::WASM_PAGE_SIZE as usize; @@ -536,10 +536,10 @@ fn custom_limiter_detect_os_oom_failure() -> Result<()> { if libc::WEXITSTATUS(wstatus) == 0 { Ok(()) } else { - bail!("child exited with failure"); + anyhow::bail!("child exited with failure"); } } else { - bail!("child didnt exit??") + anyhow::bail!("child didnt exit??") } } }