From fd2bd2468dda8035d53fe8fc6001a5d6b397e1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 1 Dec 2019 03:37:33 +0100 Subject: [PATCH] tokio-xmpp: changer .into_iter to .iter to avoid ambiguity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow compiler warnings. See https://github.com/rust-lang/rust/issues/66145 Signed-off-by: Maxime “pep” Buquet --- tokio-xmpp/src/happy_eyeballs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-xmpp/src/happy_eyeballs.rs b/tokio-xmpp/src/happy_eyeballs.rs index 6cc75552..39394a51 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![]);