Skip to content

Commit

Permalink
chore: remove unnecessary type converting (hyperium#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 29, 2024
1 parent 2967fbb commit cf95990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hpack/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ mod test {

fn encode(e: &mut Encoder, hdrs: Vec<Header<Option<HeaderName>>>) -> BytesMut {
let mut dst = BytesMut::with_capacity(1024);
e.encode(&mut hdrs.into_iter(), &mut dst);
e.encode(hdrs, &mut dst);
dst
}

Expand Down
2 changes: 1 addition & 1 deletion src/hpack/test/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn test_story(story: Value) {
})
.collect();

encoder.encode(&mut input.clone().into_iter(), &mut buf);
encoder.encode(input.clone(), &mut buf);

decoder
.decode(&mut Cursor::new(&mut buf), |e| {
Expand Down

0 comments on commit cf95990

Please sign in to comment.