events-macros: Fix wrong variable name

This commit is contained in:
Jonas Platte 2021-10-07 00:15:19 +02:00
parent fd15dcda9f
commit 343bb2a67b
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -350,7 +350,7 @@ fn generate_event_type_aliases(
EventKindVariation::RedactedSync,
]
.iter()
.filter_map(|&kind| Some((kind, event_kind.try_to_event_ident(kind)?)))
.filter_map(|&var| Some((var, event_kind.try_to_event_ident(var)?)))
.map(|(kind, ev_struct)| {
let ev_type = format_ident!("{}{}", kind, ev_type_s);