summaryrefslogtreecommitdiff
path: root/serde_dhall/src/shortcuts.rs
diff options
context:
space:
mode:
authorNadrieril2020-04-05 11:43:22 +0100
committerNadrieril2020-04-05 11:43:22 +0100
commit15a0902b50ff6d1b36dbf7a220b6ff42ceefada6 (patch)
treebf9239a9d222499f2e0c6d2781651a006d6511ce /serde_dhall/src/shortcuts.rs
parent158117e4096f5af571e79e1a33d91f09e7b2cc5d (diff)
Rename Deserialize trait to FromDhall
Diffstat (limited to 'serde_dhall/src/shortcuts.rs')
-rw-r--r--serde_dhall/src/shortcuts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/serde_dhall/src/shortcuts.rs b/serde_dhall/src/shortcuts.rs
index cd31402..9c9ce9f 100644
--- a/serde_dhall/src/shortcuts.rs
+++ b/serde_dhall/src/shortcuts.rs
@@ -1,7 +1,7 @@
use doc_comment::doc_comment;
use std::path::Path;
-use crate::{options, Deserialize, Result, SimpleType, StaticType};
+use crate::{options, FromDhall, Result, SimpleType, StaticType};
// Avoid copy-pasting documentation
@@ -252,7 +252,7 @@ macro_rules! generate_fn {
gen_doc!($src, $ty),
pub fn $name<T, $($ty_params)*> ($($input_args)*) -> Result<T>
where
- T: Deserialize $($extra_bounds)*,
+ T: FromDhall $($extra_bounds)*,
{
$($create_options)* .parse()
}