style: Fix Clippy warnings: unused imports

This commit is contained in:
Chris Hennick 2024-05-02 13:31:38 -07:00
parent da3bbc87d7
commit 08d30e976a
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

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