diff --git a/ruma-api-macros/src/derive_outgoing.rs b/ruma-api-macros/src/derive_outgoing.rs index 5f914372..2bb5bacd 100644 --- a/ruma-api-macros/src/derive_outgoing.rs +++ b/ruma-api-macros/src/derive_outgoing.rs @@ -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, } }