summaryrefslogtreecommitdiff
path: root/dhall/src/traits
diff options
context:
space:
mode:
authorNadrieril2019-05-02 12:54:35 +0200
committerNadrieril2019-05-02 13:48:55 +0200
commit5465b7e2b8cc286e2e8b87556b3ec6a2476cf0cf (patch)
treea335aabe2be9639f4064220e47980b44fe1a84a2 /dhall/src/traits
parent61f8413a24fc9e215d948f6238584e493a66705f (diff)
Tweaks
Diffstat (limited to '')
-rw-r--r--dhall/src/traits/static_type.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/traits/static_type.rs b/dhall/src/traits/static_type.rs
index 225eb32..8b5acbf 100644
--- a/dhall/src/traits/static_type.rs
+++ b/dhall/src/traits/static_type.rs
@@ -33,7 +33,7 @@ pub trait SimpleStaticType {
}
fn mktype<'a>(x: SubExpr<X, X>) -> SimpleType<'a> {
- SimpleType(x, std::marker::PhantomData)
+ x.into()
}
impl<T: SimpleStaticType> StaticType for T {