Skip to content

Commit

Permalink
cargo fmt vump
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaesar committed Nov 1, 2023
1 parent 53fa83f commit a3f0978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ fn main() -> Result<()> {
}

fn interfaces_routes() -> (std::collections::HashMap<u32, String>, netlink::route::Rtbl) {
let Ok(ref route_socket) = netlink::route::socket() else { return Default::default() };
let Ok(ref route_socket) = netlink::route::socket() else {
return Default::default();
};
let interfaces = netlink::route::interface_names(route_socket).unwrap_or_default();
let local_routes = netlink::route::local_routes(route_socket).unwrap_or_default();
(interfaces, local_routes)
Expand Down

0 comments on commit a3f0978

Please sign in to comment.