We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf91fd commit 788ceb2Copy full SHA for 788ceb2
crates/compression-codecs/src/bzip2/decoder.rs
@@ -105,6 +105,16 @@ impl Decode for BzDecoder {
105
&mut self,
106
_output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
107
) -> io::Result<bool> {
108
- Ok(true)
+ match self.decode(
109
+ &mut PartialBuffer::new(&[][..]),
110
+ output,
111
+ )? {
112
+ Status::Ok
113
+ | Status::FlushOk
114
+ | Status::RunOk
115
+ | Status::FinishOk => Ok(false),
116
+ Status::StreamEnd => Ok(true),
117
+ Status::MemNeeded => Err(io::ErrorKind::OutOfMemory.into()),
118
+ }
119
}
120
0 commit comments