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?;