diff options
author | Nadrieril | 2020-03-13 20:53:23 +0000 |
---|---|---|
committer | Nadrieril | 2020-03-31 21:44:01 +0100 |
commit | 1a0929b52af57d5963dd9da9e5cf85ffbed3a8f7 (patch) | |
tree | 4bb8d701584f229475c0b4f76db4b77ddaf028cf /serde_dhall/tests | |
parent | 6a2a407f27b8068769f208383119ac855f629e96 (diff) |
Reorganize serde modules
Diffstat (limited to 'serde_dhall/tests')
-rw-r--r-- | serde_dhall/tests/de.rs | 4 | ||||
-rw-r--r-- | serde_dhall/tests/traits.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/serde_dhall/tests/de.rs b/serde_dhall/tests/de.rs index 4042611..b201e4f 100644 --- a/serde_dhall/tests/de.rs +++ b/serde_dhall/tests/de.rs @@ -3,7 +3,7 @@ use serde_dhall::{from_str, from_str_auto_type, StaticType}; #[test] fn test_de_typed() { - fn parse<T: serde_dhall::de::Deserialize + StaticType>(s: &str) -> T { + fn parse<T: serde_dhall::Deserialize + StaticType>(s: &str) -> T { from_str_auto_type(s).unwrap() } @@ -57,7 +57,7 @@ fn test_de_typed() { #[test] fn test_de_untyped() { - fn parse<T: serde_dhall::de::Deserialize>(s: &str) -> T { + fn parse<T: serde_dhall::Deserialize>(s: &str) -> T { from_str(s).unwrap() } diff --git a/serde_dhall/tests/traits.rs b/serde_dhall/tests/traits.rs index b2fe6e5..f3c6f05 100644 --- a/serde_dhall/tests/traits.rs +++ b/serde_dhall/tests/traits.rs @@ -1,4 +1,4 @@ -use serde_dhall::{from_str, StaticType, Type}; +use serde_dhall::{from_str, simple::Type, StaticType}; #[test] fn test_static_type() { |