summaryrefslogtreecommitdiff
path: root/dhall/src/lib.rs
diff options
context:
space:
mode:
authorNadrieril2020-02-09 17:39:01 +0000
committerNadrieril2020-02-09 19:58:28 +0000
commit81504a7ee24f22820c6bc85823c879d488710d11 (patch)
treecf42f91130c602b7f008035c50553222f6ba44c2 /dhall/src/lib.rs
parentca93f39201f6f8be9bc1466eed7323d0426e135c (diff)
Massively deduplicate test harness
Diffstat (limited to '')
-rw-r--r--dhall/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs
index dbf1fc0..7725b28 100644
--- a/dhall/src/lib.rs
+++ b/dhall/src/lib.rs
@@ -234,6 +234,17 @@ impl std::hash::Hash for Normalized {
}
}
+impl From<Parsed> for NormalizedExpr {
+ fn from(other: Parsed) -> Self {
+ other.to_expr()
+ }
+}
+impl From<Normalized> for NormalizedExpr {
+ fn from(other: Normalized) -> Self {
+ other.to_expr()
+ }
+}
+
impl Eq for Typed {}
impl PartialEq for Typed {
fn eq(&self, other: &Self) -> bool {