Skip to content

Commit 579b67c

Browse files
Apply suggested fix to tests/zip_crypto.rs from Copilot Autofix (#620)
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 ca432a0 commit 579b67c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/zip_crypto.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ fn test_encrypted_file_operations() {
7373
// No password
7474
let file = archive.by_index(0);
7575
match file {
76-
Err(zip::result::ZipError::UnsupportedArchive(
77-
zip::result::ZipError::PASSWORD_REQUIRED,
78-
)) => (),
76+
Err(zip::result::ZipError::UnsupportedArchive(msg)) => {
77+
assert_eq!(msg, zip::result::ZipError::PASSWORD_REQUIRED);
78+
}
7979
Err(_) => panic!(
8080
"Expected PasswordRequired error when opening encrypted file without password"
8181
),

0 commit comments

Comments
 (0)