From de8333d1646b9450a50943a5d198cea59489168d Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 15 Aug 2024 17:54:24 +0400 Subject: [PATCH] fix(example): upd after changes in DnsClient API --- examples/dane.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/dane.rs b/examples/dane.rs index 00e06f2..862ab4a 100644 --- a/examples/dane.rs +++ b/examples/dane.rs @@ -4,7 +4,13 @@ use tokio_gemini::dns::DnsClient; async fn main() { let mut client = DnsClient::init(("1.1.1.1", 53)).await.unwrap(); println!( - "{:?}", - client.query_tlsa("torproject.org", 443).await.unwrap() + "{}", + client + .query_tlsa("torproject.org", 443) + .await + .unwrap() + .next() + .unwrap() + .hex() ); }