mirror of
https://github.com/actix/actix-web.git
synced 2024-11-27 12:01:15 +00:00
fix warning
This commit is contained in:
parent
85b275bb2b
commit
b878613e10
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue