Skip to content

Commit

Permalink
refactor(cli): Satiate clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 16, 2024
1 parent 0c3ebb7 commit ed22f44
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit ed22f44

Please sign in to comment.