Reformat with trailing comma

This commit is contained in:
Luke Jones
2025-02-14 16:06:20 +13:00
parent 0bdf0474c9
commit 2c006699f2
113 changed files with 791 additions and 792 deletions

View File

@@ -54,7 +54,7 @@ pub async fn has_iface(iface: &str) -> Result<bool, Box<dyn std::error::Error>>
pub async fn find_iface_async<T>(iface_name: &str) -> Result<Vec<T>, Box<dyn std::error::Error>>
where
T: ProxyImpl<'static> + From<zbus::Proxy<'static>>
T: ProxyImpl<'static> + From<zbus::Proxy<'static>>,
{
let conn = zbus::Connection::system().await?;
let f = zbus::fdo::ObjectManagerProxy::new(&conn, "xyz.ljones.Asusd", "/").await?;
@@ -82,7 +82,7 @@ where
.path(path.clone())?
.destination("xyz.ljones.Asusd")?
.build()
.await?
.await?,
);
}
return Ok(ctrl);

View File

@@ -57,6 +57,6 @@ pub trait FanCurves {
&self,
profile: PlatformProfile,
fan: FanCurvePU,
enabled: bool
enabled: bool,
) -> zbus::Result<()>;
}

View File

@@ -84,7 +84,7 @@ pub trait Platform {
#[zbus(property)]
fn set_platform_profile_on_battery(
&self,
platform_profile: PlatformProfile
platform_profile: PlatformProfile,
) -> zbus::Result<()>;
/// ChangeThrottlePolicyOnAc property