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,