Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jul 24, 2018
1 parent 85b275b commit b878613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ impl ClientConnector {
}

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 key2 = key.clone();
Expand All @@ -635,7 +636,7 @@ impl ClientConnector {
act.connector
.connect_async(&key.host, stream)
.into_actor(act)
.then(move |res, act, _| {
.then(move |res, _, _| {
match res {
Err(e) => {
let _ = waiter.tx.send(Err(
Expand Down

0 comments on commit b878613

Please sign in to comment.