Skip to content

Commit 0364105

Browse files
committed
update deps
1 parent 98e9332 commit 0364105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ clap = { version = "4", features = ["derive"] }
3838
ctrlc2 = { version = "3", features = ["tokio", "termination"] }
3939
dotenvy = "0.15"
4040
env_logger = "0.11"
41-
hickory-proto = "0.24"
41+
hickory-proto = "0.25"
4242
log = "0.4"
4343
moka = { version = "0.12", features = ["future"] }
4444
rand = "0.9"

examples/util/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn extract_ipaddr_from_dns_message(message: &Message) -> Result<IpAddr, Stri
3131
}
3232
let mut cname = None;
3333
for answer in message.answers() {
34-
match answer.data().ok_or("DNS response not contains answer data")? {
34+
match answer.data() {
3535
RData::A(addr) => {
3636
return Ok(IpAddr::V4((*addr).into()));
3737
}

0 commit comments

Comments
 (0)