Rerun rustfmt
This commit is contained in:
parent
cfc4c66820
commit
ad457c1c11
@ -923,12 +923,16 @@ fn generate_event_content_impl<'a>(
|
|||||||
let type_prefixes = quote! {
|
let type_prefixes = quote! {
|
||||||
[#(#type_prefixes,)*]
|
[#(#type_prefixes,)*]
|
||||||
};
|
};
|
||||||
let fields_without_type_fragment = fields.filter(|f| {
|
let fields_without_type_fragment = fields
|
||||||
!f.attrs.iter().any(|a| {
|
.filter(|f| {
|
||||||
a.path().is_ident("ruma_event") && matches!(a.parse_args(), Ok(EventFieldMeta::TypeFragment))
|
!f.attrs.iter().any(|a| {
|
||||||
|
a.path().is_ident("ruma_event")
|
||||||
|
&& matches!(a.parse_args(), Ok(EventFieldMeta::TypeFragment))
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}).collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
let fields_ident_without_type_fragment = fields_without_type_fragment.iter().filter_map(|f| f.ident.as_ref());
|
let fields_ident_without_type_fragment =
|
||||||
|
fields_without_type_fragment.iter().filter_map(|f| f.ident.as_ref());
|
||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
impl #ruma_common::events::EventContentFromType for #ident {
|
impl #ruma_common::events::EventContentFromType for #ident {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user