mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
use empty ok instead of wrapping empty expression
Reasons: - It is more readable since the evaluated result is more explicit. Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
committed by
Clément DOUIN
parent
3cca9ac9e8
commit
95eed65193
@@ -149,7 +149,7 @@ impl AccountSyncCommand {
|
||||
let report = sync_builder
|
||||
.with_on_progress(move |evt| {
|
||||
use AccountSyncProgressEvent::*;
|
||||
Ok(match evt {
|
||||
match evt {
|
||||
ApplyFolderPatches(..) => {
|
||||
main_progress.inc(3);
|
||||
}
|
||||
@@ -199,7 +199,8 @@ impl AccountSyncCommand {
|
||||
.set_message(format!("Expunging {} folders…", folders.len()));
|
||||
}
|
||||
_ => (),
|
||||
})
|
||||
};
|
||||
Ok(())
|
||||
})
|
||||
.sync()
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user