Skip to content

Commit

Permalink
Remove no longer needed Errors sections
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 30, 2017
1 parent e5036e6 commit 6a732e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/gz/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ pub struct GzDecoder<R> {
impl<R: BufRead> GzDecoder<R> {
/// Creates a new decoder from the given reader, immediately parsing the
/// gzip header.
///
/// # Errors
///
/// If an error is encountered when parsing the gzip header, an error is
/// returned.
pub fn new(mut r: R) -> GzDecoder<R> {
let header = read_gz_header(&mut r);

Expand Down Expand Up @@ -442,11 +437,6 @@ impl<R: BufRead> MultiGzDecoder<R> {
/// Creates a new decoder from the given reader, immediately parsing the
/// (first) gzip header. If the gzip stream contains multiple members all will
/// be decoded.
///
/// # Errors
///
/// If an error is encountered when parsing the gzip header, an error is
/// returned.
pub fn new(mut r: R) -> MultiGzDecoder<R> {
let header = read_gz_header(&mut r);

Expand Down
10 changes: 0 additions & 10 deletions src/gz/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ pub struct GzDecoder<R> {
impl<R: Read> GzDecoder<R> {
/// Creates a new decoder from the given reader, immediately parsing the
/// gzip header.
///
/// # Errors
///
/// If an error is encountered when parsing the gzip header, an error is
/// returned.
pub fn new(r: R) -> GzDecoder<R> {
GzDecoder {
inner: bufread::GzDecoder::new(BufReader::new(r)),
Expand Down Expand Up @@ -236,11 +231,6 @@ impl<R: Read> MultiGzDecoder<R> {
/// Creates a new decoder from the given reader, immediately parsing the
/// (first) gzip header. If the gzip stream contains multiple members all will
/// be decoded.
///
/// # Errors
///
/// If an error is encountered when parsing the gzip header, an error is
/// returned.
pub fn new(r: R) -> MultiGzDecoder<R> {
MultiGzDecoder {
inner: bufread::MultiGzDecoder::new(BufReader::new(r)),
Expand Down

0 comments on commit 6a732e9

Please sign in to comment.