mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
happy_eyeballs: fix two mut warnings
This commit is contained in:
parent
1a46449c16
commit
6ac5bb99db
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ impl Future for Connecter {
|
|||
type Error = String;
|
||||
|
||||
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue