clippy: fix/allow identity_op

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-19 14:12:07 +01:00
parent e062ebbc29
commit 81281d04a4
2 changed files with 10 additions and 1 deletions

View 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)?;