diff options
author | Nadrieril | 2019-04-14 23:52:34 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-14 23:53:02 +0200 |
commit | 89667f976dc6ed006c9b983dd64301cf477b9008 (patch) | |
tree | 9652985c5378fa06e20d24406e7f64b37d909ae1 /dhall/tests | |
parent | 4c840270cf69f9580b18c43736bd247cab74e896 (diff) |
Namespace deserialization functions in a `de` submodule
Closes #73
Diffstat (limited to 'dhall/tests')
-rw-r--r-- | dhall/tests/traits.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall/tests/traits.rs b/dhall/tests/traits.rs index ef3e385..00e6509 100644 --- a/dhall/tests/traits.rs +++ b/dhall/tests/traits.rs @@ -1,5 +1,5 @@ #![feature(proc_macro_hygiene)] -use dhall::SimpleStaticType; +use dhall::de::SimpleStaticType; use dhall_core::{SubExpr, X}; use dhall_generator::dhall_expr; @@ -20,14 +20,14 @@ fn test_static_type() { mktype(dhall_expr!({ _1: Bool, _2: Optional Text })) ); - #[derive(dhall::SimpleStaticType)] + #[derive(dhall::de::SimpleStaticType)] #[allow(dead_code)] struct A { field1: bool, field2: Option<bool>, } assert_eq!( - <A as dhall::SimpleStaticType>::get_simple_static_type(), + <A as dhall::de::SimpleStaticType>::get_simple_static_type(), mktype(dhall_expr!({ field1: Bool, field2: Optional Bool })) ); |