Skip to content

Commit

Permalink
refactor(header): ownership is not needed to iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Feb 19, 2024
1 parent 4b73f6a commit 79f8da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ where
type Error = Error;

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

0 comments on commit 79f8da5

Please sign in to comment.