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