From 2c766e917daa85212a7379cf51d7713c41fab9ef Mon Sep 17 00:00:00 2001 From: Skye Date: Sat, 16 Dec 2023 17:56:44 -0500 Subject: [PATCH] Reformat network_manager --- src/tiles/network_manager.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tiles/network_manager.rs b/src/tiles/network_manager.rs index 6cf5dad..f3d4211 100644 --- a/src/tiles/network_manager.rs +++ b/src/tiles/network_manager.rs @@ -14,13 +14,14 @@ pub async fn network_manager( _output: OutputChannel, dbus_conn: Arc, ) -> eyre::Result { - let destination = "org.freedesktop.NetworkManager"; let timeout = Duration::from_secs(5); let connection = dbus_conn.as_ref(); let make_proxy = |path| Proxy::new(destination, path, timeout, connection); - let primary_connection = make_proxy("/org/freedesktop/NetworkManager".into()).primary_connection().await?; + let primary_connection = make_proxy("/org/freedesktop/NetworkManager".into()) + .primary_connection() + .await?; let specific_object = make_proxy(primary_connection).specific_object().await?; let ssid = make_proxy(specific_object).ssid().await?;