From 6b234770c546f355984417fc9ecab710e271f5a3 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 8 Oct 2024 21:58:37 +0000 Subject: [PATCH] clippy fix --- src/tokio/bufread/generic/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {