Skip to content

Commit cf95990

Browse files
authored
chore: remove unnecessary type converting (#790)
1 parent 2967fbb commit cf95990

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hpack/encoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ mod test {
695695

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

src/hpack/test/fixture.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn test_story(story: Value) {
107107
})
108108
.collect();
109109

110-
encoder.encode(&mut input.clone().into_iter(), &mut buf);
110+
encoder.encode(input.clone(), &mut buf);
111111

112112
decoder
113113
.decode(&mut Cursor::new(&mut buf), |e| {

0 commit comments

Comments
 (0)