events-macros: Fix proc-macro entrypoint name

This commit is contained in:
Jonas Platte 2021-10-01 20:14:02 +02:00
parent 651741f482
commit d77f58dc46
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -87,7 +87,7 @@ pub fn derive_event_content(input: TokenStream) -> TokenStream {
/// Generates implementations needed to serialize and deserialize Matrix events. /// Generates implementations needed to serialize and deserialize Matrix events.
#[proc_macro_derive(Event, attributes(ruma_event))] #[proc_macro_derive(Event, attributes(ruma_event))]
pub fn derive_state_event(input: TokenStream) -> TokenStream { pub fn derive_event(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as DeriveInput); let input = parse_macro_input!(input as DeriveInput);
expand_event(input).unwrap_or_else(syn::Error::into_compile_error).into() expand_event(input).unwrap_or_else(syn::Error::into_compile_error).into()
} }