diff options
author | Nadrieril | 2020-04-05 11:43:22 +0100 |
---|---|---|
committer | Nadrieril | 2020-04-05 11:43:22 +0100 |
commit | 15a0902b50ff6d1b36dbf7a220b6ff42ceefada6 (patch) | |
tree | bf9239a9d222499f2e0c6d2781651a006d6511ce /serde_dhall/src/options.rs | |
parent | 158117e4096f5af571e79e1a33d91f09e7b2cc5d (diff) |
Rename Deserialize trait to FromDhall
Diffstat (limited to '')
-rw-r--r-- | serde_dhall/src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serde_dhall/src/options.rs b/serde_dhall/src/options.rs index 237647f..d7a91a2 100644 --- a/serde_dhall/src/options.rs +++ b/serde_dhall/src/options.rs @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf}; use dhall::Parsed; use crate::SimpleType; -use crate::{Deserialize, Error, ErrorKind, Result, StaticType, Value}; +use crate::{FromDhall, Error, ErrorKind, Result, StaticType, Value}; #[derive(Debug, Clone)] enum Source<'a> { @@ -128,7 +128,7 @@ impl<'a, T> Deserializer<'a, T> { /// TODO pub fn parse(&self) -> Result<T> where - T: Deserialize, + T: FromDhall, { let val = self._parse().map_err(ErrorKind::Dhall).map_err(Error)?; T::from_dhall(&val) |