Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 6, 2024
1 parent 3efee2d commit 46d2963
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions iroh-net/src/net/interfaces/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async fn default_route_netlink() -> Result<Option<DefaultRouteDetails>> {
};
task.abort();
task.await.ok();
Ok(default.map(|(name, index)| DefaultRouteDetails {
Ok(default.map(|(name, _index)| DefaultRouteDetails {
interface_name: name,
}))
}
Expand Down Expand Up @@ -174,8 +174,6 @@ mod tests {
// assert!(route.is_some());
if let Some(route) = route {
assert!(!route.interface_name.is_empty());
assert!(route.interface_description.is_none());
assert_eq!(route.interface_index, 0);
}
}

Expand All @@ -193,7 +191,6 @@ mod tests {
// assert!(route.is_some());
if let Some(route) = route {
assert!(!route.interface_name.is_empty());
assert!(route.interface_index > 0);
}
}
}

0 comments on commit 46d2963

Please sign in to comment.