macros: Rename is_room to is_timeline

This commit is contained in:
Jonas Platte 2022-09-16 11:28:16 +02:00
parent df971d2c5c
commit 956871cfa6
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ fn expand_accessor_methods(
let self_variants: Vec<_> = variants.iter().map(|v| v.match_arm(quote! { Self })).collect();
let maybe_redacted =
kind.is_room() && matches!(var, EventEnumVariation::None | EventEnumVariation::Sync);
kind.is_timeline() && matches!(var, EventEnumVariation::None | EventEnumVariation::Sync);
let event_type_match_arms = if maybe_redacted {
quote! {

View File

@ -121,7 +121,7 @@ impl EventKind {
matches!(self, Self::GlobalAccountData | Self::RoomAccountData)
}
pub fn is_room(self) -> bool {
pub fn is_timeline(self) -> bool {
matches!(self, Self::MessageLike | Self::RoomRedaction | Self::State)
}