summaryrefslogtreecommitdiff
path: root/dhall_generator/src
diff options
context:
space:
mode:
authorNadrieril2019-03-08 00:07:09 +0100
committerNadrieril2019-03-08 00:07:09 +0100
commit16ce1082465a11bf76df5f59530cde02bddc4f21 (patch)
tree7e0af011578a46d3916386b99ade2b920481a4d8 /dhall_generator/src
parentd8c8514c6a903b155345f419cb56daa91d27c141 (diff)
Make Expr generic in its type of labels
Diffstat (limited to 'dhall_generator/src')
-rw-r--r--dhall_generator/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_generator/src/lib.rs b/dhall_generator/src/lib.rs
index e43db43..b316f51 100644
--- a/dhall_generator/src/lib.rs
+++ b/dhall_generator/src/lib.rs
@@ -22,7 +22,7 @@ fn dhall_to_tokenstream<'i>(
expr: &Expr<'i, X, X>,
ctx: &Context<'i, ()>,
) -> TokenStream {
- use dhall_core::Expr::*;
+ use dhall_core::Expr_::*;
match expr {
e @ Var(_) => {
let v = dhall_to_tokenstream_bx(e, ctx);
@@ -78,7 +78,7 @@ fn dhall_to_tokenstream_bx<'i>(
expr: &Expr<'i, X, X>,
ctx: &Context<'i, ()>,
) -> TokenStream {
- use dhall_core::Expr::*;
+ use dhall_core::Expr_::*;
match expr {
Var(V(s, n)) => {
match ctx.lookup(s, *n) {