diff --git a/src/deflate.rs b/src/deflate.rs index 3b4571ab1..1270a8202 100644 --- a/src/deflate.rs +++ b/src/deflate.rs @@ -25,7 +25,7 @@ pub struct EncoderWriter { /// /// 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 { +pub struct EncoderReader { inner: EncoderReaderBuf>, } @@ -33,7 +33,7 @@ pub struct EncoderReader { /// /// 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 { +pub struct EncoderReaderBuf { obj: R, data: Compress, } @@ -42,7 +42,7 @@ pub struct EncoderReaderBuf { /// /// 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 { +pub struct DecoderReader { inner: DecoderReaderBuf>, } @@ -50,7 +50,7 @@ pub struct DecoderReader { /// /// 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 { +pub struct DecoderReaderBuf { obj: R, data: Decompress, } diff --git a/src/gz.rs b/src/gz.rs index 42bc9c0e8..de6321d0e 100644 --- a/src/gz.rs +++ b/src/gz.rs @@ -41,7 +41,7 @@ pub struct EncoderWriter { /// This structure exposes a `Read` interface that will read uncompressed data /// from the underlying reader and expose the compressed version as a `Read` /// interface. -pub struct EncoderReader { +pub struct EncoderReader { inner: EncoderReaderBuf>, } @@ -50,7 +50,7 @@ pub struct EncoderReader { /// This structure exposes a `Read` interface that will read uncompressed data /// from the underlying reader and expose the compressed version as a `Read` /// interface. -pub struct EncoderReaderBuf { +pub struct EncoderReaderBuf { inner: deflate::EncoderReaderBuf>, header: Vec, pos: usize, @@ -71,7 +71,7 @@ pub struct Builder { /// /// This structure exposes a `Read` interface that will consume compressed /// data from the underlying reader and emit uncompressed data. -pub struct DecoderReader { +pub struct DecoderReader { inner: DecoderReaderBuf>, } @@ -86,7 +86,7 @@ pub struct DecoderReader { /// /// This structure exposes a `Read` interface that will consume all gzip members /// from the underlying reader and emit uncompressed data. -pub struct MultiDecoderReader { +pub struct MultiDecoderReader { inner: MultiDecoderReaderBuf>, } @@ -94,7 +94,7 @@ pub struct MultiDecoderReader { /// /// This structure exposes a `Read` interface that will consume compressed /// data from the underlying reader and emit uncompressed data. -pub struct DecoderReaderBuf { +pub struct DecoderReaderBuf { inner: CrcReader>, header: Header, finished: bool, @@ -111,7 +111,7 @@ pub struct DecoderReaderBuf { /// /// This structure exposes a `Read` interface that will consume all gzip members /// from the underlying reader and emit uncompressed data. -pub struct MultiDecoderReaderBuf { +pub struct MultiDecoderReaderBuf { inner: CrcReader>, header: Header, finished: bool,