diff --git a/src/tokio/bufread/generic/decoder.rs b/src/tokio/bufread/generic/decoder.rs index 0c21df7..908e58f 100644 --- a/src/tokio/bufread/generic/decoder.rs +++ b/src/tokio/bufread/generic/decoder.rs @@ -95,7 +95,7 @@ impl Decoder { let done = this.decoder.decode(&mut input, output)?; let len = input.written().len(); this.reader.as_mut().consume(len); - if output.written().len() == 0 { + if output.written().is_empty() { *this.multiple_members = false; State::Flushing } else if done {