From 6ac5bb99dbe1d3392d621e34432e2993bdba2e26 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 22 Feb 2018 19:56:56 +0100 Subject: [PATCH] happy_eyeballs: fix two mut warnings --- src/happy_eyeballs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/happy_eyeballs.rs b/src/happy_eyeballs.rs index 806472c..f2cd1a6 100644 --- a/src/happy_eyeballs.rs +++ b/src/happy_eyeballs.rs @@ -45,7 +45,7 @@ impl Future for Connecter { type Error = String; fn poll(&mut self) -> Poll { - match self.lookup.as_mut().map(|mut lookup| lookup.poll()) { + match self.lookup.as_mut().map(|lookup| lookup.poll()) { None | Some(Ok(Async::NotReady)) => (), Some(Ok(Async::Ready(found_srvs))) => { self.lookup = None; @@ -60,7 +60,7 @@ impl Future for Connecter { return Err(format!("{}", e)), } - match self.srvs.as_mut().map(|mut srv| srv.poll()) { + match self.srvs.as_mut().map(|srv| srv.poll()) { None | Some(Ok(Async::NotReady)) => (), Some(Ok(Async::Ready(None))) => self.srvs = None,