From ffa12c204743d455ae5ac13473da3387c068c39d Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 25 Sep 2021 23:33:00 -0700 Subject: add missing `From` impl --- src/reader.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/reader.rs') 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 for StandardDecodeError { } } +impl From for StandardPartialDecoderError { + fn from(_: ReadError) -> StandardPartialDecoderError { + StandardPartialDecoderError::ExhaustedInput + } +} + #[derive(Debug, PartialEq, Eq, Copy, Clone)] pub enum ReadError { ExhaustedInput, -- cgit v1.1