diff --git a/examples/compress_file.rs b/examples/compress_file.rs index 39ed8eed..be4b81e6 100644 --- a/examples/compress_file.rs +++ b/examples/compress_file.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::GzEncoder; use flate2::Compression; use std::env::args; diff --git a/examples/decompress_file.rs b/examples/decompress_file.rs index 4f21d3fd..6b2ede95 100644 --- a/examples/decompress_file.rs +++ b/examples/decompress_file.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread; use std::env::args; use std::fs::File; diff --git a/examples/deflatedecoder-bufread.rs b/examples/deflatedecoder-bufread.rs index 7d1cb6fd..6b8e7fea 100644 --- a/examples/deflatedecoder-bufread.rs +++ b/examples/deflatedecoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::DeflateDecoder; use flate2::write::DeflateEncoder; use flate2::Compression; diff --git a/examples/deflatedecoder-read.rs b/examples/deflatedecoder-read.rs index cc5d435b..1bc83bc3 100644 --- a/examples/deflatedecoder-read.rs +++ b/examples/deflatedecoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::DeflateDecoder; use flate2::write::DeflateEncoder; use flate2::Compression; diff --git a/examples/deflatedecoder-write.rs b/examples/deflatedecoder-write.rs index 276490ba..b9ba7a31 100644 --- a/examples/deflatedecoder-write.rs +++ b/examples/deflatedecoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::DeflateDecoder; use flate2::write::DeflateEncoder; use flate2::Compression; diff --git a/examples/deflateencoder-bufread.rs b/examples/deflateencoder-bufread.rs index 6240f399..bff1848c 100644 --- a/examples/deflateencoder-bufread.rs +++ b/examples/deflateencoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::DeflateEncoder; use flate2::Compression; use std::fs::File; diff --git a/examples/deflateencoder-read.rs b/examples/deflateencoder-read.rs index ffb628e4..366c60c9 100644 --- a/examples/deflateencoder-read.rs +++ b/examples/deflateencoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::DeflateEncoder; use flate2::Compression; use std::io; diff --git a/examples/deflateencoder-write.rs b/examples/deflateencoder-write.rs index 243b9dfd..f998e1ae 100644 --- a/examples/deflateencoder-write.rs +++ b/examples/deflateencoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::DeflateEncoder; use flate2::Compression; use std::io::prelude::*; diff --git a/examples/gzbuilder.rs b/examples/gzbuilder.rs index d6ec2f4c..c0725085 100644 --- a/examples/gzbuilder.rs +++ b/examples/gzbuilder.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::Compression; use flate2::GzBuilder; use std::fs::File; diff --git a/examples/gzdecoder-bufread.rs b/examples/gzdecoder-bufread.rs index 85511973..06d0448d 100644 --- a/examples/gzdecoder-bufread.rs +++ b/examples/gzdecoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::GzEncoder; use flate2::{bufread, Compression}; use std::io; diff --git a/examples/gzdecoder-read.rs b/examples/gzdecoder-read.rs index 705d28c2..fbd05be7 100644 --- a/examples/gzdecoder-read.rs +++ b/examples/gzdecoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::GzEncoder; use flate2::{read, Compression}; use std::io; diff --git a/examples/gzdecoder-write.rs b/examples/gzdecoder-write.rs index 766bb5e7..6cee8f8d 100644 --- a/examples/gzdecoder-write.rs +++ b/examples/gzdecoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::{GzDecoder, GzEncoder}; use flate2::Compression; use std::io; diff --git a/examples/gzencoder-bufread.rs b/examples/gzencoder-bufread.rs index 015ae0a8..2214e2dc 100644 --- a/examples/gzencoder-bufread.rs +++ b/examples/gzencoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::GzEncoder; use flate2::Compression; use std::fs::File; diff --git a/examples/gzencoder-read.rs b/examples/gzencoder-read.rs index 3f1262b9..ee138483 100644 --- a/examples/gzencoder-read.rs +++ b/examples/gzencoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::GzEncoder; use flate2::Compression; use std::io; diff --git a/examples/gzencoder-write.rs b/examples/gzencoder-write.rs index 275b010c..cee01d14 100644 --- a/examples/gzencoder-write.rs +++ b/examples/gzencoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::GzEncoder; use flate2::Compression; use std::io::prelude::*; diff --git a/examples/gzmultidecoder-bufread.rs b/examples/gzmultidecoder-bufread.rs index c6bb2c55..692b6f53 100644 --- a/examples/gzmultidecoder-bufread.rs +++ b/examples/gzmultidecoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::MultiGzDecoder; use flate2::write::GzEncoder; use flate2::Compression; diff --git a/examples/gzmultidecoder-read.rs b/examples/gzmultidecoder-read.rs index 7c8a8e31..c59561dd 100644 --- a/examples/gzmultidecoder-read.rs +++ b/examples/gzmultidecoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::MultiGzDecoder; use flate2::write::GzEncoder; use flate2::Compression; diff --git a/examples/zlibdecoder-bufread.rs b/examples/zlibdecoder-bufread.rs index 30f168a7..82620c54 100644 --- a/examples/zlibdecoder-bufread.rs +++ b/examples/zlibdecoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::ZlibDecoder; use flate2::write::ZlibEncoder; use flate2::Compression; diff --git a/examples/zlibdecoder-read.rs b/examples/zlibdecoder-read.rs index f7e5fb0a..3d4cda7d 100644 --- a/examples/zlibdecoder-read.rs +++ b/examples/zlibdecoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::ZlibDecoder; use flate2::write::ZlibEncoder; use flate2::Compression; diff --git a/examples/zlibdecoder-write.rs b/examples/zlibdecoder-write.rs index 358e9035..7f5afbea 100644 --- a/examples/zlibdecoder-write.rs +++ b/examples/zlibdecoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::ZlibDecoder; use flate2::write::ZlibEncoder; use flate2::Compression; diff --git a/examples/zlibencoder-bufread.rs b/examples/zlibencoder-bufread.rs index 0321d8d3..e5e17f52 100644 --- a/examples/zlibencoder-bufread.rs +++ b/examples/zlibencoder-bufread.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::bufread::ZlibEncoder; use flate2::Compression; use std::fs::File; diff --git a/examples/zlibencoder-read.rs b/examples/zlibencoder-read.rs index 779eb1d3..f833a50b 100644 --- a/examples/zlibencoder-read.rs +++ b/examples/zlibencoder-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::ZlibEncoder; use flate2::Compression; use std::fs::File; diff --git a/examples/zlibencoder-write.rs b/examples/zlibencoder-write.rs index 76bcf17b..3e3548f0 100644 --- a/examples/zlibencoder-write.rs +++ b/examples/zlibencoder-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::write::ZlibEncoder; use flate2::Compression; use std::io::prelude::*; diff --git a/tests/early-flush.rs b/tests/early-flush.rs index e717adaa..b43f4745 100644 --- a/tests/early-flush.rs +++ b/tests/early-flush.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use std::io::{Read, Write}; use flate2::read::GzDecoder; diff --git a/tests/empty-read.rs b/tests/empty-read.rs index 75512383..3724c23d 100644 --- a/tests/empty-read.rs +++ b/tests/empty-read.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use std::io::{Read, Write}; #[test] diff --git a/tests/gunzip.rs b/tests/gunzip.rs index c3820328..f4b0de5c 100644 --- a/tests/gunzip.rs +++ b/tests/gunzip.rs @@ -1,5 +1,3 @@ -extern crate flate2; - use flate2::read::GzDecoder; use flate2::read::MultiGzDecoder; use std::fs::File; diff --git a/tests/zero-write.rs b/tests/zero-write.rs index f0db86cb..22be8eec 100644 --- a/tests/zero-write.rs +++ b/tests/zero-write.rs @@ -1,5 +1,3 @@ -extern crate flate2; - #[test] fn zero_write_is_error() { let mut buf = [0u8];