summaryrefslogtreecommitdiff
path: root/crates/parser/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/parser/src/error.rs')
-rw-r--r--crates/parser/src/error.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/parser/src/error.rs b/crates/parser/src/error.rs
index 6fa9e25..a5c807a 100644
--- a/crates/parser/src/error.rs
+++ b/crates/parser/src/error.rs
@@ -28,11 +28,9 @@ impl Debug for ParseError {
write!(f, "error parsing module: {} at offset {}", message, offset)
}
Self::InvalidEncoding(encoding) => write!(f, "invalid encoding: {:?}", encoding),
- Self::InvalidLocalCount { expected, actual } => write!(
- f,
- "invalid local count: expected {}, actual {}",
- expected, actual
- ),
+ Self::InvalidLocalCount { expected, actual } => {
+ write!(f, "invalid local count: expected {}, actual {}", expected, actual)
+ }
Self::EndNotReached => write!(f, "end of module not reached"),
Self::Other(message) => write!(f, "unknown error: {}", message),
}