mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 17:15:12 +00: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:
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?;
|
||||
|
|
Loading…
Reference in a new issue