diff options
| author | Henry <mail@henrygressmann.de> | 2026-05-04 20:27:17 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-05-04 20:27:17 +0200 |
| commit | f328442c4d30bcd3916fb7c064e903539b641c04 (patch) | |
| tree | 5e8d71da200772b59b85e639441325266b1819fe /crates/cli/src | |
| parent | c0b356b025ef93eb3c1378c203858c3a7486f398 (diff) | |
chore: cleanup
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli/src')
| -rw-r--r-- | crates/cli/src/cli.rs | 10 | ||||
| -rw-r--r-- | crates/cli/src/wast_runner.rs | 10 |
2 files changed, 9 insertions, 11 deletions
diff --git a/crates/cli/src/cli.rs b/crates/cli/src/cli.rs index 8b9df2d..ae367d2 100644 --- a/crates/cli/src/cli.rs +++ b/crates/cli/src/cli.rs @@ -1,10 +1,6 @@ -use clap::{ - Args, Parser, Subcommand, ValueEnum, - builder::{ - Styles, - styling::{AnsiColor, Effects}, - }, -}; +use clap::builder::Styles; +use clap::builder::styling::{AnsiColor, Effects}; +use clap::{Args, Parser, Subcommand, ValueEnum}; use clap_complete::Shell; use crate::engine_flags::EngineFlags; 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) } |
