]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/tools/logrotate.rs
clippy: fix/allow identity_op
[proxmox-backup.git] / src / tools / logrotate.rs
index 5d026e8ccf77dd1df11d24fda0dc74f3937a2378..a326a3a27cfb8166278906e0c9cae7461a79daae 100644 (file)
@@ -104,7 +104,7 @@ impl LogRotate {
 
         for i in (0..count-1).rev() {
             if self.compress
-                && filenames[i+0].extension() != Some(std::ffi::OsStr::new("zst"))
+                && filenames[i].extension() != Some(std::ffi::OsStr::new("zst"))
                 && filenames[i+1].extension() == Some(std::ffi::OsStr::new("zst"))
             {
                 Self::compress(&filenames[i], &filenames[i+1], &options)?;