Skip to content

Commit 79f8da5

Browse files
tottotoseanmonstar
authored andcommitted
refactor(header): ownership is not needed to iterate
1 parent 4b73f6a commit 79f8da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/header/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ where
18551855
type Error = Error;
18561856

18571857
fn try_from(c: &'a HashMap<K, V>) -> Result<Self, Self::Error> {
1858-
c.into_iter()
1858+
c.iter()
18591859
.map(|(k, v)| -> crate::Result<(HeaderName, T)> {
18601860
let name = TryFrom::try_from(k).map_err(Into::into)?;
18611861
let value = TryFrom::try_from(v).map_err(Into::into)?;

0 commit comments

Comments
 (0)