events-macros: Make methods on Copy type take self by value

This commit is contained in:
Jonas Platte 2021-04-13 13:17:09 +02:00
parent 6585aeb628
commit 355b462431
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -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