run rustfmt

This commit is contained in:
Zac Pullar-Strecker 2020-06-16 14:45:36 +12:00
parent f04e4f4a04
commit c074a3090c
2 changed files with 5 additions and 3 deletions

View file

@ -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;

View file

@ -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");