fix: resolve Rust lints

This commit is contained in:
Yuri Karamian
2026-08-17 19:24:32 +02:00
parent 1ebf2a9843
commit ac7c79af04
9 changed files with 65 additions and 61 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ pub fn list_backups(backup_dir: &Path) -> Result<Vec<BackupEntry>, String> {
let entry = entry.map_err(|e| e.to_string())?;
let path = entry.path();
if path.extension().map_or(false, |ext| ext == "zip") {
if path.extension().is_some_and(|ext| ext == "zip") {
let filename = path
.file_name()
.unwrap_or_default()