mirror of https://github.com/fafhrd91/actix-web
Remove Into<HeaderMap> via http::HeaderMap
This commit is contained in:
parent
9e20b806ae
commit
e4898aa2a6
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Implement `From<&HeaderMap>` for `http::HeaderMap` and vice versa.
|
- Implement `From<&HeaderMap>` for `http::HeaderMap`.
|
||||||
|
|
||||||
## 3.5.1
|
## 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`.
|
/// Convert our `HeaderMap` to a `http::HeaderMap`.
|
||||||
impl From<HeaderMap> for http::HeaderMap {
|
impl From<HeaderMap> for http::HeaderMap {
|
||||||
fn from(map: HeaderMap) -> Self {
|
fn from(map: HeaderMap) -> Self {
|
||||||
|
|
Loading…
Reference in New Issue