Run cargo fmt

This commit is contained in:
Vicki Pfau 2024-03-29 16:18:53 -07:00
parent b0628fc7b9
commit 86515aceaf

View file

@ -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,7 +370,10 @@ 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(
crate::path("/etc/NetworkManager/conf.d/wifi_backend.conf"),
"wifi.backend=iwd\n",
)
.await .await
.expect("write"); .expect("write");