Update trust-dns.

Emmanuel Gil Peyrot created

Change summary

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

Detailed changes

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"

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