Skip to content

Commit 9537c21

Browse files
authored
Fix clippy in mem.rs
1 parent cea21d0 commit 9537c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl Compress {
142142
// apparently 0-length compression requests which don't actually make
143143
// any progress are returned as BZ_PARAM_ERROR, which we don't want, to
144144
// just translate to a success here.
145-
if input.len() == 0 && action == Action::Run {
145+
if input.is_empty() && action == Action::Run {
146146
return Ok(Status::RunOk);
147147
}
148148
self.inner.raw.next_in = input.as_ptr() as *mut _;

0 commit comments

Comments
 (0)