Remove redundant imports

This commit is contained in:
Chris Hennick 2024-02-28 16:01:31 -08:00
parent 8e33631c31
commit da21bbe45f
5 changed files with 1 additions and 18 deletions

View file

@ -1,6 +1,4 @@
use std::io::prelude::*;
use std::io::{Seek, Write};
use std::iter::Iterator;
use zip_next::result::ZipError;
use zip_next::write::FileOptions;

View file

@ -55,7 +55,6 @@ impl<R: Read> Read for Crc32Reader<R> {
#[cfg(test)]
mod test {
use super::*;
use std::io::Read;
#[test]
fn test_empty_reader() {

View file

@ -213,7 +213,6 @@ impl ZipStreamFileMetadata {
mod test {
use super::*;
use std::collections::BTreeSet;
use std::io;
struct DummyVisitor;
impl ZipStreamVisitor for DummyVisitor {

View file

@ -8,17 +8,6 @@ use crate::types::{ffi, AtomicU64, DateTime, System, ZipFileData, DEFAULT_VERSIO
use byteorder::{LittleEndian, WriteBytesExt};
use crc32fast::Hasher;
use std::collections::HashMap;
#[cfg(any(
feature = "deflate",
feature = "deflate-miniz",
feature = "deflate-zlib",
feature = "deflate-zlib-ng",
feature = "deflate-zopfli",
feature = "bzip2",
feature = "zstd",
feature = "time"
))]
use std::convert::TryInto;
use std::default::Default;
use std::io;
use std::io::prelude::*;
@ -101,7 +90,6 @@ enum GenericZipWriter<W: Write + Seek> {
// Put the struct declaration in a private module to convince rustdoc to display ZipWriter nicely
pub(crate) mod zip_writer {
use super::*;
use std::collections::HashMap;
/// ZIP archive generator
///
/// Handles the bookkeeping involved in building an archive, and provides an

View file

@ -1,8 +1,7 @@
use byteorder::{LittleEndian, WriteBytesExt};
use std::collections::HashSet;
use std::io::prelude::*;
use std::io::{Cursor, Seek};
use std::iter::FromIterator;
use std::io::{Cursor};
use zip_next::result::ZipResult;
use zip_next::write::FileOptions;
use zip_next::{CompressionMethod, ZipWriter, SUPPORTED_COMPRESSION_METHODS};