diff --git a/ruma-events-macros/src/event_parse.rs b/ruma-events-macros/src/event_parse.rs index a2980c43..87b90e7a 100644 --- a/ruma-events-macros/src/event_parse.rs +++ b/ruma-events-macros/src/event_parse.rs @@ -43,11 +43,11 @@ impl fmt::Display for EventKindVariation { } impl EventKindVariation { - pub fn is_redacted(&self) -> bool { + pub fn is_redacted(self) -> bool { matches!(self, Self::Redacted | Self::RedactedSync | Self::RedactedStripped) } - pub fn to_full_variation(&self) -> Self { + pub fn to_full_variation(self) -> Self { match self { EventKindVariation::Redacted | EventKindVariation::RedactedSync