Add tuple lifetime stripping to derive_outgoing

This commit is contained in:
Devin Ragotzy 2020-08-05 16:00:54 -04:00 committed by Jonas Platte
parent f0a5a43455
commit e36149aea1

View File

@ -227,6 +227,15 @@ fn strip_lifetimes(field_type: &mut Type) -> bool {
}
_ => false,
},
Type::Tuple(syn::TypeTuple { elems, .. }) => {
let mut has_lifetime = false;
for elem in elems {
if strip_lifetimes(elem) {
has_lifetime = true;
}
}
has_lifetime
}
_ => false,
}
}