diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-01-22 21:56:47 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-01-22 21:56:47 +0100 |
| commit | 5d7f3bca95afb465b12b699df031b3f6139982da (patch) | |
| tree | bff1996329b7f28d5fd77951d4ff857dd2070f9e /crates/types/src | |
| parent | 0df1a2cd3b20a0378b0b6853bd116f86c2dee7ff (diff) | |
chore: wip imports
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
| -rw-r--r-- | crates/types/src/lib.rs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index a9cbdcd..96866d3 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -171,7 +171,10 @@ impl TryFrom<WasmValue> for i32 { fn try_from(value: WasmValue) -> Result<Self, Self::Error> { match value { WasmValue::I32(i) => Ok(i), - _ => Err(()), + _ => { + log::error!("i32: try_from failed: {:?}", value); + Err(()) + } } } } @@ -182,7 +185,10 @@ impl TryFrom<WasmValue> for i64 { fn try_from(value: WasmValue) -> Result<Self, Self::Error> { match value { WasmValue::I64(i) => Ok(i), - _ => Err(()), + _ => { + log::error!("i64: try_from failed: {:?}", value); + Err(()) + } } } } @@ -193,7 +199,10 @@ impl TryFrom<WasmValue> for f32 { fn try_from(value: WasmValue) -> Result<Self, Self::Error> { match value { WasmValue::F32(i) => Ok(i), - _ => Err(()), + _ => { + log::error!("f32: try_from failed: {:?}", value); + Err(()) + } } } } @@ -204,7 +213,10 @@ impl TryFrom<WasmValue> for f64 { fn try_from(value: WasmValue) -> Result<Self, Self::Error> { match value { WasmValue::F64(i) => Ok(i), - _ => Err(()), + _ => { + log::error!("f64: try_from failed: {:?}", value); + Err(()) + } } } } |
