Skip to content

Commit 13a8497

Browse files
committed
fix(warnings): remove unused FloatBits imports in wrt-intercept
Remove unused FloatBits32 and FloatBits64 imports that were causing compiler warnings. The code already uses fully qualified paths (wrt_foundation::FloatBits32) in production code. Updated test code to also use fully qualified paths for consistency. Result: Zero warnings in production builds
1 parent 27978ca commit 13a8497

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

wrt-intercept/src/builtins.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ use wrt_foundation::component_value::{
1313
};
1414
#[cfg(feature = "std")]
1515
use wrt_foundation::values::Value;
16-
#[cfg(feature = "std")]
17-
use wrt_foundation::{
18-
FloatBits32,
19-
FloatBits64,
20-
};
2116
#[allow(unused_imports)] // Used in feature-gated code
2217
use wrt_error::Error;
2318

@@ -376,8 +371,8 @@ mod tests {
376371
let values = vec![
377372
ComponentValue::S32(123),
378373
ComponentValue::S64(456),
379-
ComponentValue::F32(FloatBits32::from_float(1.23)),
380-
ComponentValue::F64(FloatBits64::from_float(4.56)),
374+
ComponentValue::F32(wrt_foundation::FloatBits32::from_float(1.23)),
375+
ComponentValue::F64(wrt_foundation::FloatBits64::from_float(4.56)),
381376
];
382377

383378
let serialized_bytes = BuiltinSerialization::serialize(&values).unwrap();

0 commit comments

Comments
 (0)