From dea95d06e1e8722106fafa85f862428f177a3233 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 30 Dec 2020 03:15:59 +0100 Subject: [PATCH] tokio-xmpp: Bump trust-dns to 0.20 --- tokio-xmpp/Cargo.toml | 4 ++-- tokio-xmpp/src/happy_eyeballs.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 7a4807fc..6ab11d8d 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -22,8 +22,8 @@ tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] } tokio-util = { version = "0.6", features = ["codec"] } tokio-stream = { version = "0.1", features = [] } tokio-tls = { package = "tokio-native-tls", version = "0.3" } -trust-dns-resolver = "0.19" -trust-dns-proto = "0.19" +trust-dns-resolver = "0.20" +trust-dns-proto = "0.20" xml5ever = "0.16" xmpp-parsers = "0.17" diff --git a/tokio-xmpp/src/happy_eyeballs.rs b/tokio-xmpp/src/happy_eyeballs.rs index eae489c2..a687ca5f 100644 --- a/tokio-xmpp/src/happy_eyeballs.rs +++ b/tokio-xmpp/src/happy_eyeballs.rs @@ -30,9 +30,7 @@ pub async fn connect( return Ok(TcpStream::connect(&SocketAddr::new(ip, fallback_port)).await?); } - let resolver = TokioAsyncResolver::tokio_from_system_conf() - .await - .map_err(ConnecterError::Resolve)?; + let resolver = TokioAsyncResolver::tokio_from_system_conf().map_err(ConnecterError::Resolve)?; let srv_records = match srv { Some(srv) => {