Skip to content

Commit

Permalink
Merge pull request #184 from andrewtoth/into-headername
Browse files Browse the repository at this point in the history
Add impl IntoHeaderName for &HeaderName
  • Loading branch information
lipanski committed Nov 3, 2023
2 parents f9f48ca + 10d1081 commit 40138fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ impl IntoHeaderName for HeaderName {
}
}

impl IntoHeaderName for &HeaderName {
fn into_header_name(self) -> HeaderName {
self.into()
}
}

#[derive(Clone, Debug)]
pub struct InnerMock {
pub(crate) id: String,
Expand Down

0 comments on commit 40138fe

Please sign in to comment.