Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Oct 10, 2023
1 parent cf98078 commit a33814d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/windows/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Device {

let address = config.address.unwrap_or(Ipv4Addr::new(10, 1, 0, 2));
let mask = config.netmask.unwrap_or(Ipv4Addr::new(255, 255, 255, 0));
let gateway = config.destination.map_or(None, |a| Some(IpAddr::V4(a)));
let gateway = config.destination.map(IpAddr::from);
adapter.set_network_addresses_tuple(IpAddr::V4(address), IpAddr::V4(mask), gateway)?;
let mtu = config.mtu.unwrap_or(1500) as usize;

Expand Down

0 comments on commit a33814d

Please sign in to comment.