diff options
| author | Henry <mail@henrygressmann.de> | 2026-07-15 15:20:00 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-07-15 15:20:00 +0200 |
| commit | f99b3a90827406b48657d63d7c1f0188ddd68c8f (patch) | |
| tree | 4bd7b11160698a63255258230fd9cc5bf43e5655 /crates/parser/src/error.rs | |
| parent | dc366165b8cd0f8c43cfe7017cb37f0a16887d6d (diff) | |
feat: decouple validation from parsing
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/error.rs')
| -rw-r--r-- | crates/parser/src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/parser/src/error.rs b/crates/parser/src/error.rs index 7b5dc34..e4d8abd 100644 --- a/crates/parser/src/error.rs +++ b/crates/parser/src/error.rs @@ -60,8 +60,8 @@ impl Display for ParseError { impl core::error::Error for ParseError {} -impl From<wasmparser::BinaryReaderError> for ParseError { - fn from(value: wasmparser::BinaryReaderError) -> Self { +impl From<wasmparser::Error> for ParseError { + fn from(value: wasmparser::Error) -> Self { Self::ParseError { message: value.message().to_string(), offset: value.offset() } } } |
