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 cea21d0 commit 9537c21Copy full SHA for 9537c21
src/mem.rs
@@ -142,7 +142,7 @@ impl Compress {
142
// apparently 0-length compression requests which don't actually make
143
// any progress are returned as BZ_PARAM_ERROR, which we don't want, to
144
// just translate to a success here.
145
- if input.len() == 0 && action == Action::Run {
+ if input.is_empty() && action == Action::Run {
146
return Ok(Status::RunOk);
147
}
148
self.inner.raw.next_in = input.as_ptr() as *mut _;
0 commit comments