mirror of https://github.com/fafhrd91/actix-web
doc tweak
This commit is contained in:
parent
535ff02493
commit
6fd628bf9e
|
@ -636,14 +636,14 @@ impl<'a> IntoIterator for &'a HeaderMap {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert `http::HeaderMap` to our `HeaderMap`.
|
/// Convert a `http::HeaderMap` to our `HeaderMap`.
|
||||||
impl From<http::HeaderMap> for HeaderMap {
|
impl From<http::HeaderMap> for HeaderMap {
|
||||||
fn from(mut map: http::HeaderMap) -> Self {
|
fn from(mut map: http::HeaderMap) -> Self {
|
||||||
Self::from_drain(map.drain())
|
Self::from_drain(map.drain())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert our 'HeaderMap' to '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 {
|
||||||
Self::from_iter(map)
|
Self::from_iter(map)
|
||||||
|
|
Loading…
Reference in New Issue