Skip to content

Commit

Permalink
Remove unnecessary lifetime specifier in network fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Gonnella committed Sep 16, 2024
1 parent 99bf71e commit d409872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r-lanlib/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn get_interface(name: &str) -> Option<NetworkInterface> {
NetworkInterface::try_from(iface).ok()
}

pub fn get_default_interface<'a>() -> Option<NetworkInterface> {
pub fn get_default_interface() -> Option<NetworkInterface> {
let iface = pnet::datalink::interfaces()
.into_iter()
.find(|e| e.is_up() && !e.is_loopback() && e.ips.iter().find(|i| i.is_ipv4()).is_some())?;
Expand Down

0 comments on commit d409872

Please sign in to comment.