Delegate into_client_request (4)

pull/143/head
philipp 4 years ago
parent 064fd9313f
commit 50bc1b5e90
  1. 4
      src/client.rs

@ -198,9 +198,7 @@ pub trait IntoClientRequest {
impl<'a> IntoClientRequest for &'a str { impl<'a> IntoClientRequest for &'a str {
fn into_client_request(self) -> Result<Request> { fn into_client_request(self) -> Result<Request> {
let uri: Uri = self.parse()?; self.parse::<Uri>()?.into_client_request()
Ok(Request::get(uri).body(())?)
} }
} }

Loading…
Cancel
Save