From 1eaf06bf1cd97d1cab5d01fdbd1114a967002b52 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 12 Jun 2019 16:48:39 +0200 Subject: [PATCH] Update trust-dns. --- Cargo.toml | 4 ++-- src/happy_eyeballs.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db18052..a62b4ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,8 +21,8 @@ xml5ever = "0.14" native-tls = "0.2" tokio-tls = "0.2" sasl = "0.4" -trust-dns-resolver = "0.10" -trust-dns-proto = "0.6" +trust-dns-resolver = "0.11" +trust-dns-proto = "0.7" xmpp-parsers = "0.13" idna = "0.1" quick-xml = "0.13" diff --git a/src/happy_eyeballs.rs b/src/happy_eyeballs.rs index fc4e028..7696f65 100644 --- a/src/happy_eyeballs.rs +++ b/src/happy_eyeballs.rs @@ -79,7 +79,7 @@ impl Connecter { // Initialize state match &self_.srv_domain { &Some(ref srv_domain) => { - let srv_lookup = resolver.lookup_srv(srv_domain); + let srv_lookup = resolver.lookup_srv(srv_domain.clone()); self_.state = State::ResolveSrv(resolver, srv_lookup); } None => {