From 8debeabeab12329b981918b8789553714290fdcd Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Sat, 30 May 2026 10:09:07 -0400 Subject: [PATCH] style(proto): remove explicit_iter_loop lint --- Cargo.toml | 1 - src/proto/h1/decode.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 306c3ccddf..690a0a18e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -123,7 +123,6 @@ decimal_literal_representation = "allow" # TODO: consider default_trait_access = "allow" else_if_without_else = "allow" enum_glob_use = "allow" -explicit_iter_loop = "allow" # TODO: easy fix float_arithmetic = "allow" ignored_unit_patterns = "allow" indexing_slicing = "allow" diff --git a/src/proto/h1/decode.rs b/src/proto/h1/decode.rs index 47cf249687..23c95b34d1 100644 --- a/src/proto/h1/decode.rs +++ b/src/proto/h1/decode.rs @@ -649,7 +649,7 @@ fn decode_trailers(buf: &mut BytesMut, count: usize) -> Result { - for header in headers.iter() { + for header in headers { use std::convert::TryFrom; let name = match HeaderName::try_from(header.name) { Ok(name) => name,