Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef authored and lionel-faber committed Feb 19, 2021
1 parent 95f00b3 commit 50e421d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ impl QuicP2p {
.map(|p| (p, false))
.unwrap_or((DEFAULT_PORT_TO_TRY, true));

let mut ip = cfg
.local_ip
.unwrap_or_else(|| IpAddr::V4(Ipv4Addr::UNSPECIFIED));
let mut ip = cfg.local_ip.unwrap_or(IpAddr::V4(Ipv4Addr::UNSPECIFIED));

// check hard coded contacts for being local (aka loopback)
if let Some(contact) = cfg.hard_coded_contacts.iter().next() {
Expand Down

0 comments on commit 50e421d

Please sign in to comment.