mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): make clippy happy (#2597)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user