From c074a3090c47388e9c89932b0656afed95e09f49 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Tue, 16 Jun 2020 14:45:36 +1200 Subject: [PATCH] run rustfmt --- src/read.rs | 2 +- tests/extract.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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");