From 27083e72e3ffdc5dd45282a59a296dbf8aa57931 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 15 Sep 2021 13:45:24 -0700 Subject: [PATCH] fix warning --- tests/all/limits.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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??") } } }