diff --git a/src/read.rs b/src/read.rs index 7d6115a9..e5a5bc38 100644 --- a/src/read.rs +++ b/src/read.rs @@ -6,8 +6,8 @@ use crate::result::{ZipError, ZipResult}; use crate::spec; use std::borrow::Cow; use std::collections::HashMap; -use std::io::{self, prelude::*}; use std::fs; +use std::io::{self, prelude::*}; use std::path::Path; use crate::cp437::FromCp437; diff --git a/tests/extract.rs b/tests/extract.rs index de40a214..f71c9822 100644 --- a/tests/extract.rs +++ b/tests/extract.rs @@ -1,8 +1,8 @@ extern crate zip; +use std::fs; use std::io; use std::path::PathBuf; -use std::fs; use zip::ZipArchive; @@ -13,7 +13,9 @@ fn extract() { v.extend_from_slice(include_bytes!("../tests/data/files_and_dirs.zip")); let mut archive = ZipArchive::new(io::Cursor::new(v)).expect("couldn't open test zip file"); - archive.extract(&PathBuf::from("test_directory")).expect("extract failed"); + archive + .extract(&PathBuf::from("test_directory")) + .expect("extract failed"); // Cleanup fs::remove_dir_all("test_directory").expect("failed to remove extracted files");