Skip to content

Commit 4ad9de3

Browse files
committed
Revert code changes for hickory-resolver 0.24 compatibility
- Fix indentation in resolver config matching - Pass &data to record_payload_summary as expected
1 parent 82c0294 commit 4ad9de3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/main.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,17 @@ async fn run(Options { requests, format, verbose }: Options) -> i32 {
222222
if let Some(transport) = requests.inputs.transport_type {
223223
match (ns_str.as_str(), transport) {
224224
("google", TransportType::HTTPS) => {
225-
config = ResolverConfig::google_https();
226-
continue;
227-
}
225+
config = ResolverConfig::google_https();
226+
continue;
227+
}
228228
("cloudflare", TransportType::HTTPS) => {
229-
config = ResolverConfig::cloudflare_https();
230-
continue;
231-
}
229+
config = ResolverConfig::cloudflare_https();
230+
continue;
231+
}
232232
("cloudflare" | "one.one.one.one", TransportType::TLS) => {
233-
config = ResolverConfig::cloudflare_tls();
234-
continue;
235-
}
233+
config = ResolverConfig::cloudflare_tls();
234+
continue;
235+
}
236236
_ => {}
237237
}
238238
}

src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Table {
5151
if let Some(data) = record.data() {
5252
let qtype = self.coloured_record_type(&record);
5353
let qname = record.name().to_string();
54-
let summary = self.text_format.record_payload_summary(data);
54+
let summary = self.text_format.record_payload_summary(&data);
5555
let ttl = Some(self.text_format.format_duration(record.ttl()));
5656
self.rows.push(Row { qtype, qname, ttl, summary, section });
5757
}

0 commit comments

Comments
 (0)