events-macros: Make methods on Copy
type take self by value
This commit is contained in:
parent
6585aeb628
commit
355b462431
@ -43,11 +43,11 @@ impl fmt::Display for EventKindVariation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl EventKindVariation {
|
impl EventKindVariation {
|
||||||
pub fn is_redacted(&self) -> bool {
|
pub fn is_redacted(self) -> bool {
|
||||||
matches!(self, Self::Redacted | Self::RedactedSync | Self::RedactedStripped)
|
matches!(self, Self::Redacted | Self::RedactedSync | Self::RedactedStripped)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_full_variation(&self) -> Self {
|
pub fn to_full_variation(self) -> Self {
|
||||||
match self {
|
match self {
|
||||||
EventKindVariation::Redacted
|
EventKindVariation::Redacted
|
||||||
| EventKindVariation::RedactedSync
|
| EventKindVariation::RedactedSync
|
||||||
|
Loading…
x
Reference in New Issue
Block a user