diff --git a/src/main.rs b/src/main.rs index b8e43d2..3968d77 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,9 @@ fn main() -> Result<()> { } fn interfaces_routes() -> (std::collections::HashMap, 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)