mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
Remove useless catch-all pattern-matching
This commit is contained in:
@@ -59,15 +59,13 @@ impl Chat {
|
|||||||
|
|
||||||
match res {
|
match res {
|
||||||
Err(err @ crate::error::Error::Sql(rusqlite::Error::QueryReturnedNoRows)) => Err(err),
|
Err(err @ crate::error::Error::Sql(rusqlite::Error::QueryReturnedNoRows)) => Err(err),
|
||||||
Err(err) => match err {
|
Err(err) => {
|
||||||
_ => {
|
|
||||||
error!(
|
error!(
|
||||||
context,
|
context,
|
||||||
"chat: failed to load from db {}: {:?}", chat_id, err
|
"chat: failed to load from db {}: {:?}", chat_id, err
|
||||||
);
|
);
|
||||||
Err(err)
|
Err(err)
|
||||||
}
|
}
|
||||||
},
|
|
||||||
Ok(mut chat) => {
|
Ok(mut chat) => {
|
||||||
match chat.id {
|
match chat.id {
|
||||||
DC_CHAT_ID_DEADDROP => {
|
DC_CHAT_ID_DEADDROP => {
|
||||||
|
|||||||
Reference in New Issue
Block a user