Skip to content

Commit

Permalink
Fix array length limitation on older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
zacps committed Nov 7, 2020
1 parent b8b66a6 commit f4f1579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/zip_crypto.rs
Expand Up @@ -43,7 +43,7 @@ const ZIP_FILE_BYTES: &'static [u8; 197] = &[

#[test]
fn encrypted_file() {
let zip_file_bytes = &mut Cursor::new(ZIP_FILE_BYTES);
let zip_file_bytes = &mut Cursor::new(&ZIP_FILE_BYTES[..]);

let mut archive = zip::ZipArchive::new(zip_file_bytes).unwrap();

Expand Down Expand Up @@ -94,7 +94,7 @@ fn encrypted_file() {
#[cfg(feature = "async")]
#[async_test]
async fn encrypted_file_async() {
let zip_file_bytes = &mut futures::io::Cursor::new(ZIP_FILE_BYTES);
let zip_file_bytes = &mut futures::io::Cursor::new(&ZIP_FILE_BYTES[..]);

let mut archive = zip::AsyncZipArchive::new(zip_file_bytes).await.unwrap();

Expand Down

0 comments on commit f4f1579

Please sign in to comment.