tokio-xmpp: Bump trust-dns to 0.20

Emmanuel Gil Peyrot created

Change summary

tokio-xmpp/Cargo.toml            | 4 ++--
tokio-xmpp/src/happy_eyeballs.rs | 4 +---
2 files changed, 3 insertions(+), 5 deletions(-)

Detailed changes

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"
 

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) => {