From a3f0978ced353d7f05fac98cb906cdbbe34effb0 Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Wed, 1 Nov 2023 23:14:06 +0900 Subject: [PATCH] cargo fmt vump --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)