mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
fix warnings
This commit is contained in:
@ -599,7 +599,7 @@ impl ClientConnector {
|
||||
}
|
||||
Acquire::Available => {
|
||||
// create new connection
|
||||
self.connect_waiter(key.clone(), waiter, ctx);
|
||||
self.connect_waiter(&key, waiter, ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -608,7 +608,7 @@ impl ClientConnector {
|
||||
self.waiters = Some(act_waiters);
|
||||
}
|
||||
|
||||
fn connect_waiter(&mut self, key: Key, waiter: Waiter, ctx: &mut Context<Self>) {
|
||||
fn connect_waiter(&mut self, key: &Key, waiter: Waiter, ctx: &mut Context<Self>) {
|
||||
let conn = AcquiredConn(key.clone(), Some(self.acq_tx.clone()));
|
||||
|
||||
let key2 = key.clone();
|
||||
@ -828,7 +828,7 @@ impl Handler<Connect> for ClientConnector {
|
||||
wait,
|
||||
conn_timeout,
|
||||
};
|
||||
self.connect_waiter(key.clone(), waiter, ctx);
|
||||
self.connect_waiter(&key, waiter, ctx);
|
||||
|
||||
return ActorResponse::async(
|
||||
rx.map_err(|_| ClientConnectorError::Disconnected)
|
||||
@ -885,7 +885,7 @@ impl Handler<Connect> for ClientConnector {
|
||||
wait,
|
||||
conn_timeout,
|
||||
};
|
||||
self.connect_waiter(key.clone(), waiter, ctx);
|
||||
self.connect_waiter(&key, waiter, ctx);
|
||||
|
||||
ActorResponse::async(
|
||||
rx.map_err(|_| ClientConnectorError::Disconnected)
|
||||
|
@ -216,7 +216,7 @@ impl Future for SendRequest {
|
||||
|
||||
match pl.parse() {
|
||||
Ok(Async::Ready(mut resp)) => {
|
||||
if self.req.method() == &Method::HEAD {
|
||||
if self.req.method() == Method::HEAD {
|
||||
pl.parser.take();
|
||||
}
|
||||
resp.set_pipeline(pl);
|
||||
|
Reference in New Issue
Block a user