diff options
author | Nadrieril | 2019-03-08 22:37:32 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-08 22:37:32 +0100 |
commit | 66bed8dbc7249e17a89adcbb19406f4126a434de (patch) | |
tree | 211c309fb3aea301314871899d1286b70eafa05c /dhall_generator | |
parent | 0916eafc12b0ccbbf5b524a273903a0a84f30e74 (diff) |
Finally get rid of all the &'i str
Diffstat (limited to 'dhall_generator')
-rw-r--r-- | dhall_generator/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_generator/src/lib.rs b/dhall_generator/src/lib.rs index 7f2e295..d84bea4 100644 --- a/dhall_generator/src/lib.rs +++ b/dhall_generator/src/lib.rs @@ -11,8 +11,8 @@ pub fn dhall(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.map_embed(&no_import); - let output = dhall_to_tokenstream::<&str>(&expr, &Context::new()); + let expr = expr.take_ownership_of_labels().map_embed(&no_import); + let output = dhall_to_tokenstream::<String>(&expr, &Context::new()); output.into() } |