aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.rs6
1 files changed, 6 insertions, 0 deletions
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,