Reformat network_manager
This commit is contained in:
parent
17d3c6469e
commit
2c766e917d
|
@ -14,13 +14,14 @@ pub async fn network_manager(
|
|||
_output: OutputChannel,
|
||||
dbus_conn: Arc<SyncConnection>,
|
||||
) -> eyre::Result<Infallible> {
|
||||
|
||||
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?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue