Skip to content

Commit a245168

Browse files
committed
fix no-std build in readers.rs
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent c6aef47 commit a245168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/wasmparser/src/readers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ impl<'a> FromReader<'a> for bool {
4242
match reader.read_u8()? {
4343
0 => Ok(false),
4444
1 => Ok(true),
45-
v => Err(BinaryReaderError::new(
46-
format!("invalid boolean value: {v}"),
45+
_ => Err(BinaryReaderError::new(
46+
"invalid boolean value",
4747
reader.original_position() - 1,
4848
)),
4949
}

0 commit comments

Comments
 (0)