mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
clippy fixes
This commit is contained in:
parent
125b68e08a
commit
b1b4ac3ce9
6 changed files with 15 additions and 23 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue