Skip to content

Commit

Permalink
fix(http1): code review fixes
Browse files Browse the repository at this point in the history
- remove unnecessary into_iter
  • Loading branch information
hjr3 committed Nov 11, 2023
1 parent 9cc26a5 commit 7a8eb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h1/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Encoder {
let mut cur_name = None;
let mut allowed_trailers = HeaderMap::new();

for (opt_name, value) in trailers.into_iter() {
for (opt_name, value) in trailers {
if let Some(n) = opt_name {
cur_name = Some(n);
}
Expand Down

0 comments on commit 7a8eb33

Please sign in to comment.