Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Feb 2, 2024
1 parent 0619061 commit 4c87f26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/config/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ fn build_address_list(
}
},
)
.filter_map(|addr| match preference {
None => Some(addr),
Some(AddressFamily::Ipv6) if addr.is_ipv6() => Some(addr),
Some(AddressFamily::Ipv4) if addr.is_ipv4() => Some(addr),
_ => None,
.filter(|addr| match preference {
None => true,
Some(AddressFamily::Ipv6) if addr.is_ipv6() => true,
Some(AddressFamily::Ipv4) if addr.is_ipv4() => true,
_ => false,
})
.collect(),
Err(err) => {
Expand Down

0 comments on commit 4c87f26

Please # to comment.