From ed22f44e73689c8d2a8b725bcd7c9e128d744e93 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sun, 17 Nov 2024 00:26:36 +0300 Subject: [PATCH] refactor(cli): Satiate clippy --- src/setup/mod.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/setup/mod.rs b/src/setup/mod.rs index aacb3f6e..6355e251 100644 --- a/src/setup/mod.rs +++ b/src/setup/mod.rs @@ -187,17 +187,14 @@ fn warp_time(repo: Repository) -> Result<()> { let text = LocalText::new("setup-warp-time").fmt(); eprintln!("{} {}", style("┠┄").cyan(), text); let files = reset_mtimes(repo, opts)?; - match CONF.get_bool("verbose")? { - true => { - for file in files.iter() { - let path = file.clone().into_os_string().into_string().unwrap(); - let text = LocalText::new("setup-warp-time-file") - .arg("path", style(path).white().bold()) - .fmt(); - eprintln!("{} {}", style("┠┄").cyan(), text); - } + if CONF.get_bool("verbose")? { + for file in files.iter() { + let path = file.clone().into_os_string().into_string().unwrap(); + let text = LocalText::new("setup-warp-time-file") + .arg("path", style(path).white().bold()) + .fmt(); + eprintln!("{} {}", style("┠┄").cyan(), text); } - false => {} } Ok(()) }