diff options
author | Alex Crichton <alex@alexcrichton.com> | 2019-08-12 13:50:44 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2019-08-12 13:50:44 -0700 |
commit | 81cfc602b888edbe302eafd78d03bb7b99567cd1 (patch) | |
tree | 019a02b6e9c2747736d5af57701d149b1607ff1e | |
parent | c3a89a690aa34a4225126a40d30e9a0bf1f5a5a5 (diff) | |
download | milf-rs-81cfc602b888edbe302eafd78d03bb7b99567cd1.tar.gz milf-rs-81cfc602b888edbe302eafd78d03bb7b99567cd1.zip |
Fix a bad merge
-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 { |