fix(compat): make it work with latest hyper

This is known to work with the master of hyper. It's probably OK
to keep it, preparing for the next release and under the assupmtion
that I will not be releasing binaries for a while.
This commit is contained in:
Sebastian Thiel
2015-04-28 10:10:45 +02:00
parent 4f98fc175e
commit 57808cf92a

View File

@@ -726,7 +726,7 @@ else {
};
% endif
let mut client = &mut *self.hub.client.borrow_mut();
let mut req = client.borrow_mut().request(${method_name_to_variant(m.httpMethod)}, url.as_ref())
let mut req = client.borrow_mut().request(${method_name_to_variant(m.httpMethod)}, &url)
.header(UserAgent(self.hub._user_agent.clone()))\
% if default_scope: