mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
chore: update CI to clippy 1.88 (#7452)
This commit is contained in:
@@ -141,11 +141,9 @@ impl Decoder for AnyDelimiterCodec {
|
||||
// there's no max_length set, we'll read to the end of the buffer.
|
||||
let read_to = cmp::min(self.max_length.saturating_add(1), buf.len());
|
||||
|
||||
let new_chunk_offset = buf[self.next_index..read_to].iter().position(|b| {
|
||||
self.seek_delimiters
|
||||
.iter()
|
||||
.any(|delimiter| *b == *delimiter)
|
||||
});
|
||||
let new_chunk_offset = buf[self.next_index..read_to]
|
||||
.iter()
|
||||
.position(|b| self.seek_delimiters.contains(b));
|
||||
|
||||
match (self.is_discarding, new_chunk_offset) {
|
||||
(true, Some(offset)) => {
|
||||
|
||||
Reference in New Issue
Block a user