diff options
author | Nadrieril | 2019-04-10 19:55:50 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-10 20:01:04 +0200 |
commit | 730d99adf2d4a7f222a71d687ea942545a7038fd (patch) | |
tree | 756444c6bd445f10e338c6992aa7f781466f588a /dhall/src/traits | |
parent | 838f6c0a25d4024ee5f32ddde915fdd2f759018d (diff) |
Add error submodule
Diffstat (limited to '')
-rw-r--r-- | dhall/src/traits.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dhall/src/traits.rs b/dhall/src/traits.rs index 370632e..328cbbc 100644 --- a/dhall/src/traits.rs +++ b/dhall/src/traits.rs @@ -1,11 +1,9 @@ +use crate::error::*; use crate::expr::*; use dhall_core::*; use dhall_generator::*; use std::borrow::Cow; -#[derive(Debug, Clone)] -pub enum ConversionError {} - pub trait StaticType { fn get_static_type() -> Type; } @@ -19,8 +17,6 @@ pub trait SimpleStaticType { fn get_simple_static_type() -> SimpleType; } -pub type Error = (); -pub type Result<T> = std::result::Result<T, Error>; pub trait Deserialize<'a>: Sized { fn from_str(s: &'a str, ty: Option<&Type>) -> Result<Self>; |