]> git.proxmox.com Git - proxmox-backup-qemu.git/commit
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)
commit0e1ddb09b5eede34f75dd575c8aeac7f51261e59
tree3e67e0a75ff987cce227cca564cc253d442298bc
parenta2841b1b2b5cc2c891388b68ef0ad22fab0941c9
clippy: this case I disagree with

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