diff options
author | iximeow <me@iximeow.net> | 2021-09-25 23:33:00 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-09-25 23:33:00 -0700 |
commit | ffa12c204743d455ae5ac13473da3387c068c39d (patch) | |
tree | 7e0f53f6cb6672991cb745af2993de0f9f8f3998 /src/reader.rs | |
parent | eb673b89d75865e5e7d38d9ee706ff7b2f9aed8f (diff) |
add missing `From<ReadError>` impl
Diffstat (limited to 'src/reader.rs')
-rw-r--r-- | src/reader.rs | 6 |
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, |