summaryrefslogtreecommitdiff
path: root/dhall_generator/src
diff options
context:
space:
mode:
authorNadrieril2019-04-11 20:45:43 +0200
committerNadrieril2019-04-11 20:45:43 +0200
commitd9a2a77a19e56edd8eb96eba002e39bc7be3bde3 (patch)
treea2cb1badcaad84b94c08ae6643b81a6b8481559a /dhall_generator/src
parentd17d553a39aa3bffdfc19b7fe4801b85d6bd80f7 (diff)
Thread lifetimes through other newtypes
Closes #55
Diffstat (limited to '')
-rw-r--r--dhall_generator/src/derive.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhall_generator/src/derive.rs b/dhall_generator/src/derive.rs
index c911be5..e231702 100644
--- a/dhall_generator/src/derive.rs
+++ b/dhall_generator/src/derive.rs
@@ -176,7 +176,8 @@ pub fn derive_simple_static_type_inner(
let tokens = quote! {
impl #impl_generics dhall::SimpleStaticType for #ident #ty_generics
#where_clause {
- fn get_simple_static_type() -> dhall::expr::SimpleType {
+ fn get_simple_static_type<'get_simple_static_type>() ->
+ dhall::expr::SimpleType<'get_simple_static_type> {
#(#assertions)*
dhall::expr::SimpleType::from(#get_type)
}