Skip to content

Commit a41ecd3

Browse files
committed
clippy
1 parent 0c666b5 commit a41ecd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clash-lib/src/app/dns/dns_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ impl DnsClient {
440440
if message
441441
.extensions()
442442
.as_ref()
443-
.map_or(false, |edns| edns.option(EdnsCode::Subnet).is_some())
443+
.is_some_and(|edns| edns.option(EdnsCode::Subnet).is_some())
444444
{
445445
return;
446446
}

0 commit comments

Comments
 (0)