Remove extra clone when request with Url
This commit is contained in:
committed by
Martin Algesten
parent
39d44af669
commit
c06c345f28
@@ -47,14 +47,6 @@ impl fmt::Debug for Request {
|
||||
|
||||
impl Request {
|
||||
pub(crate) fn new(agent: Agent, method: String, url: String) -> Request {
|
||||
Self::_new(agent, method, url)
|
||||
}
|
||||
|
||||
pub(crate) fn with_url(agent: Agent, method: String, url: Url) -> Request {
|
||||
Self::_new(agent, method, url.to_string())
|
||||
}
|
||||
|
||||
fn _new(agent: Agent, method: String, url: String) -> Request {
|
||||
Request {
|
||||
agent,
|
||||
method,
|
||||
|
||||
Reference in New Issue
Block a user