// This even counts the ReadMentions activity _itself_ - it
// gets reinitialised, because that's the simplest way to jump
// you down to the new message.
- match self {
- Activity::Compose(_) => false,
- _ => true,
- }
+ matches!(self, Activity::Compose(_))
}
}
}
fn ok(&self) -> bool {
- match self.diagnostic() {
- PasswordDiagnostic::OrigGood | PasswordDiagnostic::ConfirmGood => {
- true
- }
- _ => false,
- }
+ matches!(
+ self.diagnostic(),
+ PasswordDiagnostic::OrigGood | PasswordDiagnostic::ConfirmGood,
+ )
}
}
impl EditableMenuLineData for Password {