1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-27 20:11:15 +00:00

fix warning

This commit is contained in:
Nikolay Kim 2018-07-24 15:49:46 -07:00
parent 85b275bb2b
commit b878613e10

View file

@ -609,6 +609,7 @@ impl ClientConnector {
} }
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 key = key.clone();
let conn = AcquiredConn(key.clone(), Some(self.acq_tx.clone())); let conn = AcquiredConn(key.clone(), Some(self.acq_tx.clone()));
let key2 = key.clone(); let key2 = key.clone();
@ -635,7 +636,7 @@ impl ClientConnector {
act.connector act.connector
.connect_async(&key.host, stream) .connect_async(&key.host, stream)
.into_actor(act) .into_actor(act)
.then(move |res, act, _| { .then(move |res, _, _| {
match res { match res {
Err(e) => { Err(e) => {
let _ = waiter.tx.send(Err( let _ = waiter.tx.send(Err(