From f328442c4d30bcd3916fb7c064e903539b641c04 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 4 May 2026 20:27:17 +0200 Subject: chore: cleanup Signed-off-by: Henry --- crates/cli/src/wast_runner.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crates/cli/src/wast_runner.rs') diff --git a/crates/cli/src/wast_runner.rs b/crates/cli/src/wast_runner.rs index 9170dce..0634e76 100644 --- a/crates/cli/src/wast_runner.rs +++ b/crates/cli/src/wast_runner.rs @@ -1,11 +1,9 @@ use std::collections::{BTreeMap, HashMap}; use std::fmt::{Display, Formatter}; use std::fs::canonicalize; +use std::panic::{self, AssertUnwindSafe}; use std::path::PathBuf; -use std::{ - panic::{self, AssertUnwindSafe}, - time::Duration, -}; +use std::time::Duration; use eyre::{Context, Result, bail, eyre}; use log::{debug, error}; @@ -833,9 +831,11 @@ impl FloatToken for wast::token::F32 { fn bits(&self) -> Bits { Bits::U32(self.bits) } + fn canonical_nan() -> WasmValue { WasmValue::F32(f32::NAN) } + fn arithmetic_nan() -> WasmValue { WasmValue::F32(f32::NAN) } @@ -845,9 +845,11 @@ impl FloatToken for wast::token::F64 { fn bits(&self) -> Bits { Bits::U64(self.bits) } + fn canonical_nan() -> WasmValue { WasmValue::F64(f64::NAN) } + fn arithmetic_nan() -> WasmValue { WasmValue::F64(f64::NAN) } -- cgit v1.3.1