aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG2
-rw-r--r--src/reader.rs6
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 0df9315..b80a7de 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,8 @@ TODO: Reader::next_n should return the number of items read as Err(ReadError::In
TODO: Reader::offset should return an AddressDiff<Address>, not a bare Address
TODO: impls of `fn one` and `fn zero` so downstream users don't have to import num_traits directly
+added an impl of `From<ReadError>` for `StandardPartialDecoderError`, matching the existing `StandardDecodeError` impl.
+
## 0.2.7
moved `AnnotatingDecoder` and its associated types to `annotation/`, for module-level documentation about that feature.
diff --git a/src/reader.rs b/src/reader.rs
index b9514ae..c853a77 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -6,6 +6,12 @@ impl From<ReadError> for StandardDecodeError {
}
}
+impl From<ReadError> for StandardPartialDecoderError {
+ fn from(_: ReadError) -> StandardPartialDecoderError {
+ StandardPartialDecoderError::ExhaustedInput
+ }
+}
+
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
pub enum ReadError {
ExhaustedInput,