Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 16, 2018
1 parent 533cae9 commit 4a4f85f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/empty-read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ fn deflate_decoder_empty_read() {
#[test]
fn deflate_encoder_empty_read() {
let original: &[u8] = b"Lorem ipsum dolor sit amet.";
let mut encoder =
flate2::read::DeflateEncoder::new(original, flate2::Compression::default());
let mut encoder = flate2::read::DeflateEncoder::new(original, flate2::Compression::default());
assert_eq!(encoder.read(&mut []).unwrap(), 0);
let mut encoded = Vec::new();
encoder.read_to_end(&mut encoded).unwrap();
Expand Down

0 comments on commit 4a4f85f

Please sign in to comment.