Skip to content

Commit

Permalink
Remove unnecessary trait bounds from reader types
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuma YOSHIOKA committed Nov 3, 2016
1 parent ab3cdab commit ed2f108
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ pub struct EncoderWriter<W: Write> {
///
/// This structure implements a `Read` interface and will read uncompressed
/// data from an underlying stream and emit a stream of compressed data.
pub struct EncoderReader<R: Read> {
pub struct EncoderReader<R> {
inner: EncoderReaderBuf<BufReader<R>>,
}

/// A ZLIB encoder, or compressor.
///
/// This structure implements a `BufRead` interface and will read uncompressed
/// data from an underlying stream and emit a stream of compressed data.
pub struct EncoderReaderBuf<R: BufRead> {
pub struct EncoderReaderBuf<R> {
obj: R,
data: Compress,
}
Expand All @@ -37,15 +37,15 @@ pub struct EncoderReaderBuf<R: BufRead> {
///
/// This structure implements a `Read` interface and takes a stream of
/// compressed data as input, providing the decompressed data when read from.
pub struct DecoderReader<R: Read> {
pub struct DecoderReader<R> {
inner: DecoderReaderBuf<BufReader<R>>,
}

/// A ZLIB decoder, or decompressor.
///
/// This structure implements a `BufRead` interface and takes a stream of
/// compressed data as input, providing the decompressed data when read from.
pub struct DecoderReaderBuf<R: BufRead> {
pub struct DecoderReaderBuf<R> {
obj: R,
data: Decompress,
}
Expand Down

0 comments on commit ed2f108

Please sign in to comment.