From 01e987de053018c68bf6c33d4873cb6b010ec183 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sun, 1 Feb 2026 13:37:33 -0800 Subject: [PATCH] Apply suggested fix to tests/zip_crypto.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- tests/zip_crypto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/zip_crypto.rs b/tests/zip_crypto.rs index c62cb7918..d6b27601e 100644 --- a/tests/zip_crypto.rs +++ b/tests/zip_crypto.rs @@ -136,10 +136,10 @@ fn test_partial_buffer_read_crypto() { // choose the minimum value here (13 bytes) to use the smallest capacity that still triggers // the intended partial-buffer read behavior for this ZIP fixture; smaller values would not // exercise that code path, and larger values might cause the entire block to be read at once. - const MIN_PARTIAL_READ_BUFFER_SIZE: usize = 13; + const PARTIAL_READ_TRIGGER_BUFFER_SIZE: usize = 13; let zip_file_bytes = &mut Cursor::new(ZIP_CRYPTO_FILE); - let buffered = BufReader::with_capacity(MIN_PARTIAL_READ_BUFFER_SIZE, zip_file_bytes); + let buffered = BufReader::with_capacity(PARTIAL_READ_TRIGGER_BUFFER_SIZE, zip_file_bytes); let mut archive = zip::ZipArchive::new(buffered).unwrap(); let mut file = archive.by_index_decrypt(0, b"test").unwrap();