summaryrefslogtreecommitdiff
path: root/serde_dhall/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--serde_dhall/tests/de.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/serde_dhall/tests/de.rs b/serde_dhall/tests/de.rs
index 653613a..8afba6e 100644
--- a/serde_dhall/tests/de.rs
+++ b/serde_dhall/tests/de.rs
@@ -1,9 +1,9 @@
use serde::Deserialize;
-use serde_dhall::{from_str, from_str_static_type, StaticType};
+use serde_dhall::{from_str, FromDhall, from_str_static_type, StaticType};
#[test]
fn test_de_typed() {
- fn parse<T: serde_dhall::Deserialize + StaticType>(s: &str) -> T {
+ fn parse<T: FromDhall + StaticType>(s: &str) -> T {
from_str_static_type(s).unwrap()
}
@@ -57,7 +57,7 @@ fn test_de_typed() {
#[test]
fn test_de_untyped() {
- fn parse<T: serde_dhall::Deserialize>(s: &str) -> T {
+ fn parse<T: FromDhall>(s: &str) -> T {
from_str(s).unwrap()
}