Skip to content

Commit

Permalink
Bump to 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 2, 2015
1 parent 2e8d3c0 commit 295ddba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = "flate2"
authors = ["Alex Crichton <[email protected]>"]
version = "0.2.4"
version = "0.2.5"
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["gzip", "flate", "zlib", "encoding"]
Expand Down
6 changes: 2 additions & 4 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ impl<R: Read> DecoderReader<R> {
});

fn bad_header() -> io::Error {
io::Error::new(io::ErrorKind::InvalidInput, "invalid gzip header",
None)
io::Error::new(io::ErrorKind::InvalidInput, "invalid gzip header")
}

fn fill<R: Read>(r: &mut R, mut buf: &mut [u8]) -> io::Result<()> {
Expand Down Expand Up @@ -466,8 +465,7 @@ impl Header {

fn corrupt() -> io::Error {
io::Error::new(io::ErrorKind::InvalidInput,
"corrupt gzip stream does not have a matching checksum",
None)
"corrupt gzip stream does not have a matching checksum")
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//! already existing stream to chain construction.

#![doc(html_root_url = "http://alexcrichton.com/flate2-rs")]
#![feature(io)]
#![deny(missing_docs)]
#![allow(trivial_numeric_casts)]
#![cfg_attr(test, deny(warnings))]
Expand Down
2 changes: 1 addition & 1 deletion src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl<R: Read, D: Direction> InnerRead<R, D> {
ffi::MZ_STREAM_END => return Ok(read),
ffi::MZ_DATA_ERROR => {
Err(io::Error::new(io::ErrorKind::InvalidInput,
"corrupt deflate stream", None))
"corrupt deflate stream"))
}
n => panic!("unexpected return {}", n),
}
Expand Down

0 comments on commit 295ddba

Please sign in to comment.