summaryrefslogtreecommitdiff
path: root/serde_dhall/tests
diff options
context:
space:
mode:
authorNadrieril2020-04-05 11:43:22 +0100
committerNadrieril2020-04-05 11:43:22 +0100
commit15a0902b50ff6d1b36dbf7a220b6ff42ceefada6 (patch)
treebf9239a9d222499f2e0c6d2781651a006d6511ce /serde_dhall/tests
parent158117e4096f5af571e79e1a33d91f09e7b2cc5d (diff)
Rename Deserialize trait to FromDhall
Diffstat (limited to 'serde_dhall/tests')
-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()
}