diff options
author | Nadrieril | 2019-04-11 20:45:43 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-11 20:45:43 +0200 |
commit | d9a2a77a19e56edd8eb96eba002e39bc7be3bde3 (patch) | |
tree | a2cb1badcaad84b94c08ae6643b81a6b8481559a /dhall_generator/src | |
parent | d17d553a39aa3bffdfc19b7fe4801b85d6bd80f7 (diff) |
Thread lifetimes through other newtypes
Closes #55
Diffstat (limited to '')
-rw-r--r-- | dhall_generator/src/derive.rs | 3 |
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) } |