style: Fix Clippy warnings: unused imports
This commit is contained in:
parent
da3bbc87d7
commit
08d30e976a
1 changed files with 1 additions and 3 deletions
|
@ -1,10 +1,8 @@
|
||||||
use std::{
|
use std::{
|
||||||
fs::{File, OpenOptions},
|
fs::{File, OpenOptions},
|
||||||
io::{Read, Write},
|
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
};
|
};
|
||||||
use zip;
|
|
||||||
use zip::write::SimpleFileOptions;
|
use zip::write::SimpleFileOptions;
|
||||||
|
|
||||||
fn gather_files<'a, T: Into<&'a Path>>(path: T, files: &mut Vec<PathBuf>) {
|
fn gather_files<'a, T: Into<&'a Path>>(path: T, files: &mut Vec<PathBuf>) {
|
||||||
|
@ -39,7 +37,7 @@ fn real_main() -> i32 {
|
||||||
let existing_zip = OpenOptions::new()
|
let existing_zip = OpenOptions::new()
|
||||||
.read(true)
|
.read(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(&archive)
|
.open(archive)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let mut append_zip = zip::ZipWriter::new_append(existing_zip).unwrap();
|
let mut append_zip = zip::ZipWriter::new_append(existing_zip).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue