mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Reformat with trailing comma
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -57,6 +57,6 @@ pub trait FanCurves {
|
||||
&self,
|
||||
profile: PlatformProfile,
|
||||
fan: FanCurvePU,
|
||||
enabled: bool
|
||||
enabled: bool,
|
||||
) -> zbus::Result<()>;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user