Skip to content

Commit

Permalink
style: fix a conditionally-unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Apr 23, 2024
1 parent f81a5b9 commit 231e154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ pub fn read_zipfile_from_stream<'a, R: Read>(reader: &'a mut R) -> ZipResult<Opt
#[cfg(test)]
mod test {
use crate::ZipArchive;
use std::io::{Cursor, Read};
use std::io::Cursor;

#[test]
fn invalid_offset() {
Expand Down Expand Up @@ -1456,6 +1456,8 @@ mod test {
))]
#[test]
fn test_read_with_data_descriptor() {
use std::io::Read;

let mut v = Vec::new();
v.extend_from_slice(include_bytes!("../tests/data/data_descriptor.zip"));
let mut reader = ZipArchive::new(Cursor::new(v)).unwrap();
Expand Down

0 comments on commit 231e154

Please sign in to comment.