1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-13 02:39:32 +00:00

Remove Into<HeaderMap> via http::HeaderMap

This commit is contained in:
Rob Ede 2024-02-01 05:46:22 +00:00
parent 9e20b806ae
commit e4898aa2a6
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
2 changed files with 1 additions and 10 deletions

View file

@ -4,7 +4,7 @@
### Changed
- Implement `From<&HeaderMap>` for `http::HeaderMap` and vice versa.
- Implement `From<&HeaderMap>` for `http::HeaderMap`.
## 3.5.1

View file

@ -643,15 +643,6 @@ impl From<http::HeaderMap> for HeaderMap {
}
}
impl<T> From<&T> for HeaderMap
where
T: Into<http::HeaderMap>,
{
fn from(map: &T) -> Self {
map.to_owned().into()
}
}
/// Convert our `HeaderMap` to a `http::HeaderMap`.
impl From<HeaderMap> for http::HeaderMap {
fn from(map: HeaderMap) -> Self {