summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-27 15:27:47 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-27 15:27:47 +0100
commit4f405d192503d0b22f2da59cfac64f4b4e3aebe6 (patch)
treeaa533e31d5db3f68b385de1fb0a5d9bc631d50d8 /crates/types
parent9d30a1b0d93b45c05f86e61df77359303aab449d (diff)
pref: more callstack/callframe improvements
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/lib.rs9
1 files changed, 5 insertions, 4 deletions
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<WasmValue> 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<WasmValue> 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<WasmValue> 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<WasmValue> 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(())
}
}