diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/de.rs | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1823,13 +1823,6 @@ impl Error { #[doc(hidden)] pub fn add_key_context(&mut self, key: &str) { self.inner.key.insert(0, key.to_string()); - } - -} - -impl std::convert::From<Error> for std::io::Error { - fn from(e: Error) -> Self { - return std::io::Error::new(std::io::ErrorKind::InvalidData, e.to_string()) } fn fix_offset<F>(&mut self, f: F) -> () @@ -1855,6 +1848,12 @@ impl std::convert::From<Error> for std::io::Error { } } +impl std::convert::From<Error> for std::io::Error { + fn from(e: Error) -> Self { + return std::io::Error::new(std::io::ErrorKind::InvalidData, e.to_string()) + } +} + impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self.inner.kind { |