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:
Perma Alesheikh 2024-01-08 21:30:16 +03:30 committed by Clément DOUIN
parent 3cca9ac9e8
commit 95eed65193
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -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?;