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
|
let report = sync_builder
|
||||||
.with_on_progress(move |evt| {
|
.with_on_progress(move |evt| {
|
||||||
use AccountSyncProgressEvent::*;
|
use AccountSyncProgressEvent::*;
|
||||||
Ok(match evt {
|
match evt {
|
||||||
ApplyFolderPatches(..) => {
|
ApplyFolderPatches(..) => {
|
||||||
main_progress.inc(3);
|
main_progress.inc(3);
|
||||||
}
|
}
|
||||||
|
@ -199,7 +199,8 @@ impl AccountSyncCommand {
|
||||||
.set_message(format!("Expunging {} folders…", folders.len()));
|
.set_message(format!("Expunging {} folders…", folders.len()));
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
})
|
};
|
||||||
|
Ok(())
|
||||||
})
|
})
|
||||||
.sync()
|
.sync()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Reference in a new issue