Skip to content

Commit ac2c76d

Browse files
authored
style(proto): remove explicit_iter_loop lint (#4089)
1 parent 1f45365 commit ac2c76d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ decimal_literal_representation = "allow" # TODO: consider
123123
default_trait_access = "allow"
124124
else_if_without_else = "allow"
125125
enum_glob_use = "allow"
126-
explicit_iter_loop = "allow" # TODO: easy fix
127126
float_arithmetic = "allow"
128127
ignored_unit_patterns = "allow"
129128
indexing_slicing = "allow"

src/proto/h1/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ fn decode_trailers(buf: &mut BytesMut, count: usize) -> Result<HeaderMap, io::Er
649649
let res = httparse::parse_headers(buf, &mut headers);
650650
match res {
651651
Ok(httparse::Status::Complete((_, headers))) => {
652-
for header in headers.iter() {
652+
for header in headers {
653653
use std::convert::TryFrom;
654654
let name = match HeaderName::try_from(header.name) {
655655
Ok(name) => name,

0 commit comments

Comments
 (0)