aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-08-12 13:50:44 -0700
committerAlex Crichton <alex@alexcrichton.com>2019-08-12 13:50:44 -0700
commit81cfc602b888edbe302eafd78d03bb7b99567cd1 (patch)
tree019a02b6e9c2747736d5af57701d149b1607ff1e
parentc3a89a690aa34a4225126a40d30e9a0bf1f5a5a5 (diff)
downloadmilf-rs-81cfc602b888edbe302eafd78d03bb7b99567cd1.tar.gz
milf-rs-81cfc602b888edbe302eafd78d03bb7b99567cd1.zip
Fix a bad merge
-rw-r--r--src/de.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/de.rs b/src/de.rs
index 89b67d9..3c94467 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -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 {