From f06d46ef3ebbbb096154fa16fd8a487f3b53ab5e Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Sun, 9 Aug 2020 23:18:15 +0800 Subject: [PATCH] fixes according to review --- actix-http/src/client/pool.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-http/src/client/pool.rs b/actix-http/src/client/pool.rs index d305a7a28..013a79671 100644 --- a/actix-http/src/client/pool.rs +++ b/actix-http/src/client/pool.rs @@ -65,8 +65,8 @@ where // start support future actix_rt::spawn(ConnectorPoolSupport { - connector: connector_rc.clone(), - inner: inner_rc.clone(), + connector: Rc::clone(&connector_rc), + inner: Rc::clone(&inner_rc), }); ConnectionPool(connector_rc, inner_rc) @@ -84,7 +84,7 @@ where impl Drop for ConnectionPool { fn drop(&mut self) { - // We wake up the ConnectorPoolSupport when dropping so it can exit properly. + // wake up the ConnectorPoolSupport when dropping so it can exit properly. self.1.borrow().waker.wake(); } }