diff options
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/src/error.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/parser/src/error.rs b/crates/parser/src/error.rs index acacfa0..714535a 100644 --- a/crates/parser/src/error.rs +++ b/crates/parser/src/error.rs @@ -43,10 +43,7 @@ impl crate::std::error::Error for ParseError {} impl From<wasmparser::BinaryReaderError> for ParseError { fn from(value: wasmparser::BinaryReaderError) -> Self { - Self::ParseError { - message: value.message().to_string(), - offset: value.offset(), - } + Self::ParseError { message: value.message().to_string(), offset: value.offset() } } } |
