From 08d30e976aeee41ef501e2d4ae3a05488db54027 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 2 May 2024 13:31:38 -0700 Subject: [PATCH] style: Fix Clippy warnings: unused imports --- examples/append.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/append.rs b/examples/append.rs index 6c5e41d9..88a5147e 100644 --- a/examples/append.rs +++ b/examples/append.rs @@ -1,10 +1,8 @@ use std::{ fs::{File, OpenOptions}, - io::{Read, Write}, path::{Path, PathBuf}, str::FromStr, }; -use zip; use zip::write::SimpleFileOptions; fn gather_files<'a, T: Into<&'a Path>>(path: T, files: &mut Vec) { @@ -39,7 +37,7 @@ fn real_main() -> i32 { let existing_zip = OpenOptions::new() .read(true) .write(true) - .open(&archive) + .open(archive) .unwrap(); let mut append_zip = zip::ZipWriter::new_append(existing_zip).unwrap();