summaryrefslogtreecommitdiff
path: root/serde_dhall/src/serde.rs
diff options
context:
space:
mode:
authorNadrieril Feneanar2019-12-20 19:48:58 +0000
committerGitHub2019-12-20 19:48:58 +0000
commitce428c5512314c524535794bd89f95043fe7c221 (patch)
treec542ad7bfce433a4446bf50794e934de74aadd06 /serde_dhall/src/serde.rs
parentde0dd59204e979e29445d634a0739394110261ef (diff)
parent6d2c56cc13303ddea6b7f46d5d34659c6c558d19 (diff)
Merge pull request #119 from Nadrieril/seal-trait
Seal `Deserialize` trait
Diffstat (limited to '')
-rw-r--r--serde_dhall/src/serde.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/serde_dhall/src/serde.rs b/serde_dhall/src/serde.rs
index cf5efc4..99b9014 100644
--- a/serde_dhall/src/serde.rs
+++ b/serde_dhall/src/serde.rs
@@ -6,6 +6,8 @@ use dhall::syntax::ExprKind;
use crate::de::{Deserialize, Error, Result};
use crate::Value;
+impl<'a, T> crate::de::sealed::Sealed for T where T: serde::Deserialize<'a> {}
+
impl<'a, T> Deserialize for T
where
T: serde::Deserialize<'a>,