Skip to content

Commit

Permalink
Remove extern crates
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Dec 22, 2022
1 parent 1c0d5c8 commit d102310
Show file tree
Hide file tree
Showing 27 changed files with 0 additions and 54 deletions.
2 changes: 0 additions & 2 deletions examples/compress_file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::GzEncoder;
use flate2::Compression;
use std::env::args;
Expand Down
2 changes: 0 additions & 2 deletions examples/decompress_file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread;
use std::env::args;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflatedecoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::DeflateDecoder;
use flate2::write::DeflateEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflatedecoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::DeflateDecoder;
use flate2::write::DeflateEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflatedecoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::DeflateDecoder;
use flate2::write::DeflateEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflateencoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::DeflateEncoder;
use flate2::Compression;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflateencoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::DeflateEncoder;
use flate2::Compression;
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions examples/deflateencoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::DeflateEncoder;
use flate2::Compression;
use std::io::prelude::*;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzbuilder.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::Compression;
use flate2::GzBuilder;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzdecoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::GzEncoder;
use flate2::{bufread, Compression};
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzdecoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::GzEncoder;
use flate2::{read, Compression};
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzdecoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::{GzDecoder, GzEncoder};
use flate2::Compression;
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzencoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::GzEncoder;
use flate2::Compression;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzencoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::GzEncoder;
use flate2::Compression;
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzencoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::GzEncoder;
use flate2::Compression;
use std::io::prelude::*;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzmultidecoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::MultiGzDecoder;
use flate2::write::GzEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/gzmultidecoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::MultiGzDecoder;
use flate2::write::GzEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibdecoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::ZlibDecoder;
use flate2::write::ZlibEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibdecoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::ZlibDecoder;
use flate2::write::ZlibEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibdecoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::ZlibDecoder;
use flate2::write::ZlibEncoder;
use flate2::Compression;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibencoder-bufread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::bufread::ZlibEncoder;
use flate2::Compression;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibencoder-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::ZlibEncoder;
use flate2::Compression;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions examples/zlibencoder-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::write::ZlibEncoder;
use flate2::Compression;
use std::io::prelude::*;
Expand Down
2 changes: 0 additions & 2 deletions tests/early-flush.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use std::io::{Read, Write};

use flate2::read::GzDecoder;
Expand Down
2 changes: 0 additions & 2 deletions tests/empty-read.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use std::io::{Read, Write};

#[test]
Expand Down
2 changes: 0 additions & 2 deletions tests/gunzip.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

use flate2::read::GzDecoder;
use flate2::read::MultiGzDecoder;
use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions tests/zero-write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate flate2;

#[test]
fn zero_write_is_error() {
let mut buf = [0u8];
Expand Down

0 comments on commit d102310

Please sign in to comment.