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:
parent
658c30fba6
commit
fd2bd2468d
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ impl Connecter {
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
self_.targets = [(self_.domain.clone(), self_.fallback_port)]
|
self_.targets = [(self_.domain.clone(), self_.fallback_port)]
|
||||||
.into_iter()
|
.iter()
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect();
|
.collect();
|
||||||
self_.state = State::Connecting(Some(resolver), vec![]);
|
self_.state = State::Connecting(Some(resolver), vec![]);
|
||||||
|
@ -120,7 +120,7 @@ impl Future for Connecter {
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
// ignore, fallback
|
// ignore, fallback
|
||||||
self.targets = [(self.domain.clone(), self.fallback_port)]
|
self.targets = [(self.domain.clone(), self.fallback_port)]
|
||||||
.into_iter()
|
.iter()
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect();
|
.collect();
|
||||||
self.state = State::Connecting(Some(resolver), vec![]);
|
self.state = State::Connecting(Some(resolver), vec![]);
|
||||||
|
|
Loading…
Reference in a new issue