]> git.proxmox.com Git - proxmox-backup-qemu.git/commitdiff
clippy: this case I disagree with
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 13 Aug 2020 07:53:58 +0000 (09:53 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 13 Aug 2020 07:54:00 +0000 (09:54 +0200)
clippy suggests a way-too-long
for (i, index) in index.iter_mut().enumerate().take(index_count) {
    *index = ...
}

which is just massive in comparison, and not at all more
readable...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/upload_queue.rs

index 7c5453b65cbf4bb7a592e2b1edf01a76d8208913..bc1d9912663548e2297e99285b266a733fef239d 100644 (file)
@@ -70,7 +70,7 @@ async fn upload_chunk_list(
     Ok(())
 }
 
-#[allow(clippy::too_many_arguments)]
+#[allow(clippy::too_many_arguments, clippy::needless_range_loop)]
 async fn upload_handler(
     client: Arc<BackupWriter>,
     known_chunks: Arc<Mutex<HashSet<[u8;32]>>>,