File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
crates/compression-codecs/src/bzip2 Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,10 @@ impl Decode for BzDecoder {
103103
104104 fn finish (
105105 & mut self ,
106- _output : & mut PartialBuffer < impl AsRef < [ u8 ] > + AsMut < [ u8 ] > > ,
106+ output : & mut PartialBuffer < impl AsRef < [ u8 ] > + AsMut < [ u8 ] > > ,
107107 ) -> io:: Result < bool > {
108- match self . decode (
109- & mut PartialBuffer :: new ( & [ ] [ ..] ) ,
110- output,
111- ) ? {
112- Status :: Ok
113- | Status :: FlushOk
114- | Status :: RunOk
115- | Status :: FinishOk => Ok ( false ) ,
108+ match self . decode ( & mut PartialBuffer :: new ( & [ ] [ ..] ) , output) ? {
109+ Status :: Ok | Status :: FlushOk | Status :: RunOk | Status :: FinishOk => Ok ( false ) ,
116110 Status :: StreamEnd => Ok ( true ) ,
117111 Status :: MemNeeded => Err ( io:: ErrorKind :: OutOfMemory . into ( ) ) ,
118112 }
You can’t perform that action at this time.
0 commit comments