diff --git a/crates/ruma-macros/src/events/event_type.rs b/crates/ruma-macros/src/events/event_type.rs index b18ac0dd..df49bfa8 100644 --- a/crates/ruma-macros/src/events/event_type.rs +++ b/crates/ruma-macros/src/events/event_type.rs @@ -208,7 +208,7 @@ fn generate_enum( #[allow(deprecated)] impl #ident { - fn to_cow_str(&self) -> ::std::borrow::Cow<'_, ::std::primitive::str> { + pub fn to_cow_str(&self) -> ::std::borrow::Cow<'_, ::std::primitive::str> { match self { #(#to_cow_str_match_arms,)* Self::_Custom(crate::PrivOwnedStr(s)) => ::std::borrow::Cow::Borrowed(s),