From 95eed65193f7e0cf8e947106bbcc89989553d93e Mon Sep 17 00:00:00 2001 From: Perma Alesheikh Date: Mon, 8 Jan 2024 21:30:16 +0330 Subject: [PATCH] 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 --- src/account/command/sync.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/account/command/sync.rs b/src/account/command/sync.rs index cf5bc9f..e0367af 100644 --- a/src/account/command/sync.rs +++ b/src/account/command/sync.rs @@ -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?;