diff --git a/proxmox-io/src/sparse_copy.rs b/proxmox-io/src/sparse_copy.rs index 9d09e6ad..fad1a51a 100644 --- a/proxmox-io/src/sparse_copy.rs +++ b/proxmox-io/src/sparse_copy.rs @@ -14,8 +14,7 @@ const BUF_SIZE: usize = 8192; /// This is implemented in a way which allows the compiler to utilize SIMD instructions. pub fn buffer_is_zero(buf: &[u8]) -> bool { !buf.chunks(128) - .map(|aa| aa.iter().fold(0, |a, b| a | b) != 0) - .any(|a| a) + .any(|aa| aa.iter().fold(0, |a, b| a | b) != 0) } /// Result of a sparse copy call.