summaryrefslogtreecommitdiff
path: root/dhall/src
diff options
context:
space:
mode:
authorNadrieril2019-08-13 15:11:31 +0200
committerNadrieril2019-08-13 15:13:31 +0200
commit74bb40e88c71b80ab785f07fd19da22404ab6e95 (patch)
treefbc1a7a0b224ff30c908308972e3496492580610 /dhall/src
parent52f9ecfc4dac65d305fd920e8c7f748889a0804f (diff)
Add new error type for serde_dhall
Diffstat (limited to '')
-rw-r--r--dhall/src/error/mod.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/dhall/src/error/mod.rs b/dhall/src/error/mod.rs
index ecf3510..3626d96 100644
--- a/dhall/src/error/mod.rs
+++ b/dhall/src/error/mod.rs
@@ -17,7 +17,6 @@ pub enum Error {
Encode(EncodeError),
Resolve(ImportError),
Typecheck(TypeError),
- Deserialize(String),
}
#[derive(Debug)]
@@ -156,7 +155,6 @@ impl std::fmt::Display for Error {
Error::Encode(err) => write!(f, "{:?}", err),
Error::Resolve(err) => write!(f, "{:?}", err),
Error::Typecheck(err) => write!(f, "{:?}", err),
- Error::Deserialize(err) => write!(f, "{}", err),
}
}
}
@@ -192,13 +190,3 @@ impl From<TypeError> for Error {
Error::Typecheck(err)
}
}
-
-impl serde::de::Error for Error {
- fn custom<T>(msg: T) -> Self
- where
- T: std::fmt::Display,
- {
- Error::Deserialize(msg.to_string())
- }
-}
-