events-macros: Fix missing type qualification

This commit is contained in:
Jonas Platte 2021-05-15 00:58:18 +02:00
parent 073b699660
commit a4811663de
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -400,7 +400,7 @@ fn expand_content_enum(
let event_content_impl = quote! {
#[automatically_derived]
impl #ruma_events::EventContent for #ident {
fn event_type(&self) -> &str {
fn event_type(&self) -> &::std::primitive::str {
match self {
#( #variant_arms(content) => content.event_type(), )*
Self::Custom(content) => content.event_type(),