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.
1 parent 1716bc9 commit a65a9f2Copy full SHA for a65a9f2
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