From 4f405d192503d0b22f2da59cfac64f4b4e3aebe6 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Sat, 27 Jan 2024 15:27:47 +0100 Subject: pref: more callstack/callframe improvements Signed-off-by: Henry Gressmann --- crates/types/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crates/types') diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 9af8e11..2ccf869 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -12,6 +12,7 @@ extern crate alloc; // log for logging (optional). #[cfg(feature = "logging")] +#[allow(clippy::single_component_path_imports)] use log; #[cfg(not(feature = "logging"))] @@ -173,7 +174,7 @@ impl TryFrom for i32 { match value { WasmValue::I32(i) => Ok(i), _ => { - log::error!("i32: try_from failed: {:?}", value); + crate::log::error!("i32: try_from failed: {:?}", value); Err(()) } } @@ -187,7 +188,7 @@ impl TryFrom for i64 { match value { WasmValue::I64(i) => Ok(i), _ => { - log::error!("i64: try_from failed: {:?}", value); + crate::log::error!("i64: try_from failed: {:?}", value); Err(()) } } @@ -201,7 +202,7 @@ impl TryFrom for f32 { match value { WasmValue::F32(i) => Ok(i), _ => { - log::error!("f32: try_from failed: {:?}", value); + crate::log::error!("f32: try_from failed: {:?}", value); Err(()) } } @@ -215,7 +216,7 @@ impl TryFrom for f64 { match value { WasmValue::F64(i) => Ok(i), _ => { - log::error!("f64: try_from failed: {:?}", value); + crate::log::error!("f64: try_from failed: {:?}", value); Err(()) } } -- cgit v1.3.1