chore(clippy): make clippy happy (#2597)

This commit is contained in:
Matthias Seitz
2023-05-07 12:00:23 +02:00
committed by GitHub
parent 3591a6f249
commit 523ffa0cb7
6 changed files with 8 additions and 12 deletions

View File

@ -110,11 +110,7 @@ impl tokio_util::codec::Decoder for StreamCodec {
} else if is_whitespace(byte) {
whitespaces += 1;
}
if byte == b'\\' && !is_escaped && in_str {
is_escaped = true;
} else {
is_escaped = false;
}
is_escaped = byte == b'\\' && !is_escaped && in_str;
if depth == 0 && idx != start_idx && idx - start_idx + 1 > whitespaces {
let bts = buf.split_to(idx + 1);