Skip to content

Commit 4946089

Browse files
style: Potential fixes for 2 code quality findings in tests/zip_crypto.rs (#615)
* 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> * 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> * Revert "Apply suggested fix to tests/zip_crypto.rs from Copilot Autofix" This reverts commit 93eb903. --------- Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 56ee7c2 commit 4946089

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/zip_crypto.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ fn test_encrypt_and_decrypt_file() -> zip::result::ZipResult<()> {
4141
use std::io::{Read, Write};
4242
use zip::unstable::write::FileOptionsExt;
4343

44+
// Buffer size chosen to be comfortably larger than the small test archive; exact value is not
45+
// significant as long as it can hold the generated ZIP data.
4446
const ARCHIVE_BUFFER_SIZE: usize = 2048;
4547

4648
let mut buffer = vec![0; ARCHIVE_BUFFER_SIZE];

0 commit comments

Comments
 (0)