We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6aef47 commit a245168Copy full SHA for a245168
1 file changed
crates/wasmparser/src/readers.rs
@@ -42,8 +42,8 @@ impl<'a> FromReader<'a> for bool {
42
match reader.read_u8()? {
43
0 => Ok(false),
44
1 => Ok(true),
45
- v => Err(BinaryReaderError::new(
46
- format!("invalid boolean value: {v}"),
+ _ => Err(BinaryReaderError::new(
+ "invalid boolean value",
47
reader.original_position() - 1,
48
)),
49
}
0 commit comments