Fix nightly clippy warnings

This commit is contained in:
Alexander Krotov
2020-09-19 16:21:34 +03:00
committed by link2xt
parent 92b304dee4
commit 332a387c98
11 changed files with 37 additions and 41 deletions

View File

@@ -866,13 +866,13 @@ impl From<MessageState> for LotState {
impl MessageState {
pub fn can_fail(self) -> bool {
match self {
matches!(
self,
MessageState::OutPreparing
| MessageState::OutPending
| MessageState::OutDelivered
| MessageState::OutMdnRcvd => true, // OutMdnRcvd can still fail because it could be a group message and only some recipients failed.
_ => false,
}
| MessageState::OutPending
| MessageState::OutDelivered
| MessageState::OutMdnRcvd // OutMdnRcvd can still fail because it could be a group message and only some recipients failed.
)
}
}