Skip to content

Commit

Permalink
fixup! support partial reads
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jul 11, 2024
1 parent 5a2df46 commit 75a86fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/decoding/decodebuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ impl DecodeBuffer {
match self.can_drain_to_window_size() {
None => Ok(0),
Some(can_drain) => {
self.drain_to(can_drain, |buf| write_all_bytes(&mut sink, buf))?;
Ok(can_drain)
self.drain_to(can_drain, |buf| write_all_bytes(&mut sink, buf))
}
}
}
Expand Down

0 comments on commit 75a86fd

Please sign in to comment.