We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1716bc9 + a65a9f2 commit c986d57Copy full SHA for c986d57
src/hyperium_http.rs
@@ -13,7 +13,7 @@ impl From<http::Method> for Method {
13
14
impl From<Method> for http::Method {
15
fn from(method: Method) -> Self {
16
- http::Method::from_str(&format!("{}", method)).unwrap()
+ http::Method::from_str(method.as_ref()).unwrap()
17
}
18
19
0 commit comments