tokio-xmpp: changer .into_iter to .iter to avoid ambiguity

Follow compiler warnings. See
https://github.com/rust-lang/rust/issues/66145

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-12-01 03:37:33 +01:00 committed by Maxime Buquet
parent 658c30fba6
commit fd2bd2468d

View file

@ -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![]);