mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
Use immutable reference of service state. Update awc dns resolver. (#1905)
This commit is contained in:
@ -126,6 +126,6 @@ impl IntoHeaderValue for Mime {
|
||||
|
||||
#[inline]
|
||||
fn try_into_value(self) -> Result<HeaderValue, Self::Error> {
|
||||
HeaderValue::try_from(format!("{}", self))
|
||||
HeaderValue::from_str(self.as_ref())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user