diff --git a/tokio-xmpp/src/happy_eyeballs.rs b/tokio-xmpp/src/happy_eyeballs.rs index 6cc7555..39394a5 100644 --- a/tokio-xmpp/src/happy_eyeballs.rs +++ b/tokio-xmpp/src/happy_eyeballs.rs @@ -83,7 +83,7 @@ impl Connecter { } None => { self_.targets = [(self_.domain.clone(), self_.fallback_port)] - .into_iter() + .iter() .cloned() .collect(); self_.state = State::Connecting(Some(resolver), vec![]); @@ -120,7 +120,7 @@ impl Future for Connecter { Err(_) => { // ignore, fallback self.targets = [(self.domain.clone(), self.fallback_port)] - .into_iter() + .iter() .cloned() .collect(); self.state = State::Connecting(Some(resolver), vec![]);