mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Clippy
This commit is contained in:
@@ -119,11 +119,9 @@ async fn cleanup_aborted_imex(context: &Context, what: ImexMode) {
|
|||||||
dc_delete_files_in_dir(context, context.get_blobdir()).await;
|
dc_delete_files_in_dir(context, context.get_blobdir()).await;
|
||||||
}
|
}
|
||||||
if what == ImexMode::ExportBackup || what == ImexMode::ImportBackup {
|
if what == ImexMode::ExportBackup || what == ImexMode::ImportBackup {
|
||||||
context
|
if let Err(e) = context.sql.open(context, context.get_dbfile(), false).await {
|
||||||
.sql
|
warn!(context, "Re-opening db after imex failed: {}", e);
|
||||||
.open(context, context.get_dbfile(), false)
|
}
|
||||||
.await
|
|
||||||
.map_err(|e| warn!(context, "Re-opening db after imex failed: {}", e));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user