tokio-xmpp: Bump trust-dns to 0.20

This commit is contained in:
Emmanuel Gil Peyrot 2020-12-30 03:15:59 +01:00
commit dea95d06e1
2 changed files with 3 additions and 5 deletions

View file

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