summaryrefslogtreecommitdiff
path: root/dhall_generator
diff options
context:
space:
mode:
authorNadrieril2019-03-09 14:32:07 +0100
committerNadrieril2019-03-09 14:32:07 +0100
commite27adcdce55dc15c97bb0ac6d5bc0b082d2232c2 (patch)
tree0b9580165db1bde863bc4cff619593fbce5bf4c3 /dhall_generator
parentd8b69acc45334743c848a3d8b7689729d89eaf3a (diff)
Use new Label type instead of &str in parser
Diffstat (limited to 'dhall_generator')
-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 d1a8bdf..e66ab2c 100644
--- a/dhall_generator/src/lib.rs
+++ b/dhall_generator/src/lib.rs
@@ -11,8 +11,8 @@ pub fn dhall_expr(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let expr: Box<Expr<_, X, Import>> = parser::parse_expr(&input_str).unwrap();
let no_import =
|_: &Import| -> X { panic!("Don't use import in dhall!()") };
- let expr = expr.take_ownership_of_labels().map_embed(&no_import);
- let output = dhall_to_tokenstream::<String>(&expr, &Context::new());
+ let expr = expr.map_embed(&no_import);
+ let output = dhall_to_tokenstream::<Label>(&expr, &Context::new());
output.into()
}