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:
parent
9e20b806ae
commit
e4898aa2a6
|
@ -4,7 +4,7 @@
|
|||
|
||||
### Changed
|
||||
|
||||
- Implement `From<&HeaderMap>` for `http::HeaderMap` and vice versa.
|
||||
- Implement `From<&HeaderMap>` for `http::HeaderMap`.
|
||||
|
||||
## 3.5.1
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue