diff --git a/lib/src/archive/entry.rs b/lib/src/archive/entry.rs index cda298f6..03a6397a 100644 --- a/lib/src/archive/entry.rs +++ b/lib/src/archive/entry.rs @@ -434,7 +434,7 @@ fn decompress_reader<'r, R: Read>( compression: Compression, ) -> io::Result> { Ok(match compression { - Compression::No => DecompressReader::Store(reader), + Compression::No => DecompressReader::No(reader), Compression::Deflate => DecompressReader::Deflate(flate2::read::ZlibDecoder::new(reader)), Compression::ZStandard => DecompressReader::ZStd(zstd::Decoder::new(reader)?), Compression::XZ => DecompressReader::Xz(xz2::read::XzDecoder::new(reader)), diff --git a/lib/src/compress.rs b/lib/src/compress.rs index 12324107..12e1cf9d 100644 --- a/lib/src/compress.rs +++ b/lib/src/compress.rs @@ -49,7 +49,7 @@ impl<'w, W: Write> TryIntoInner for CompressionWriter<'w, W> { impl<'w, W: Write> TryIntoInnerWrite for CompressionWriter<'w, W> {} pub(crate) enum DecompressReader<'r, R: Read> { - Store(R), + No(R), Deflate(ZlibDecoder), ZStd(ZStdDecoder<'r, BufReader>), Xz(XzDecoder), @@ -58,7 +58,7 @@ pub(crate) enum DecompressReader<'r, R: Read> { impl<'r, R: Read> Read for DecompressReader<'r, R> { fn read(&mut self, buf: &mut [u8]) -> Result { match self { - DecompressReader::Store(r) => r.read(buf), + DecompressReader::No(r) => r.read(buf), DecompressReader::Deflate(r) => r.read(buf), DecompressReader::ZStd(r) => r.read(buf), DecompressReader::Xz(r) => r.read(buf),