mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-15 02:36:45 -04:00
Run cargo fmt
This commit is contained in:
parent
b0628fc7b9
commit
86515aceaf
1 changed files with 12 additions and 5 deletions
|
@ -98,7 +98,9 @@ impl SteamOSManager {
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn wifi_power_management_state(&self) -> zbus::fdo::Result<u32> {
|
fn wifi_power_management_state(&self) -> zbus::fdo::Result<u32> {
|
||||||
Err(zbus::fdo::Error::UnknownProperty(String::from("This property can't currently be read")))
|
Err(zbus::fdo::Error::UnknownProperty(String::from(
|
||||||
|
"This property can't currently be read",
|
||||||
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
|
@ -123,7 +125,9 @@ impl SteamOSManager {
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn fan_control_state(&self) -> zbus::fdo::Result<u32> {
|
fn fan_control_state(&self) -> zbus::fdo::Result<u32> {
|
||||||
Err(zbus::fdo::Error::UnknownProperty(String::from("This property can't currently be read")))
|
Err(zbus::fdo::Error::UnknownProperty(String::from(
|
||||||
|
"This property can't currently be read",
|
||||||
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
|
@ -366,9 +370,12 @@ mod test {
|
||||||
create_dir_all(crate::path("/etc/NetworkManager/conf.d"))
|
create_dir_all(crate::path("/etc/NetworkManager/conf.d"))
|
||||||
.await
|
.await
|
||||||
.expect("create_dir_all");
|
.expect("create_dir_all");
|
||||||
write(crate::path("/etc/NetworkManager/conf.d/wifi_backend.conf"), "wifi.backend=iwd\n")
|
write(
|
||||||
.await
|
crate::path("/etc/NetworkManager/conf.d/wifi_backend.conf"),
|
||||||
.expect("write");
|
"wifi.backend=iwd\n",
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.expect("write");
|
||||||
|
|
||||||
let manager = SteamOSManager::new().await.unwrap();
|
let manager = SteamOSManager::new().await.unwrap();
|
||||||
let connection = ConnectionBuilder::session()
|
let connection = ConnectionBuilder::session()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue