1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 16:54:08 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2026-08-17 19:04:46 +02:00
commit b1b4ac3ce9
6 changed files with 15 additions and 23 deletions

View file

@ -92,8 +92,7 @@ async fn main() -> Result<ExitCode> {
let cache_dir = cache_dir.into_diagnostic()?;
if let Some(id) = cache_dir.file_name().to_str()
&& id.starts_with("haze-")
{
if !retain.iter().any(|cloud| cloud.id == id) {
&& !retain.iter().any(|cloud| cloud.id == id) {
let path = cache_dir.path();
// By default, the worktrees live within the work dir, we do not want to delete it here.
if path == config.worktree_dir {
@ -110,7 +109,6 @@ async fn main() -> Result<ExitCode> {
})?;
}
}
}
}
prune_worktrees(&config)?;