From 267d672a9b4892016e7083d9904e4d59072a8819 Mon Sep 17 00:00:00 2001 From: konstin Date: Mon, 9 Mar 2026 12:45:07 +0100 Subject: [PATCH] Fix clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8a3c6e3..fcc66df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -748,7 +748,7 @@ mod test { // The zip archive uses as BufReader which reads in chunks of 8192. To ensure we prefetch // enough data we round the size up to the nearest multiple of the buffer size. let buffer_size = 8192; - let size = ((size + buffer_size - 1) / buffer_size) * buffer_size; + let size = size.div_ceil(buffer_size) * buffer_size; // Fetch the bytes from the zip archive that contain the requested file. reader