diff options
author | Nadrieril | 2019-08-13 16:31:41 +0200 |
---|---|---|
committer | Nadrieril | 2019-08-13 16:31:41 +0200 |
commit | bf5d33f3ba991afe398d58fb4fed38ec72d6f4c7 (patch) | |
tree | 48d04a37f15612fba2efb88c15149ed39731d96e /serde_dhall/tests | |
parent | 1ea8b10051d29c634399304273d6ee565d039bc2 (diff) |
Rework API to resemble that of serde_json
Diffstat (limited to 'serde_dhall/tests')
-rw-r--r-- | serde_dhall/tests/traits.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/serde_dhall/tests/traits.rs b/serde_dhall/tests/traits.rs index 40ac1d7..55be63b 100644 --- a/serde_dhall/tests/traits.rs +++ b/serde_dhall/tests/traits.rs @@ -1,10 +1,10 @@ #![feature(proc_macro_hygiene)] -use serde_dhall::de::{from_str, StaticType, Value}; +use serde_dhall::{from_str, StaticType, Value}; #[test] fn test_static_type() { fn parse(s: &str) -> Value { - from_str(s, None).unwrap() + from_str(s).unwrap() } assert_eq!(bool::static_type(), parse("Bool")); @@ -15,14 +15,14 @@ fn test_static_type() { parse("{ _1: Bool, _2: List Text }") ); - #[derive(serde_dhall::de::StaticType)] + #[derive(serde_dhall::StaticType)] #[allow(dead_code)] struct A { field1: bool, field2: Option<bool>, } assert_eq!( - <A as serde_dhall::de::StaticType>::static_type(), + <A as serde_dhall::StaticType>::static_type(), parse("{ field1: Bool, field2: Optional Bool }") ); |