manager/user: Remove redundant conversions from zbus::Error to itself

This commit is contained in:
Vicki Pfau 2024-08-08 20:36:56 -07:00
parent ad16c615e9
commit 08bea0d89f

View file

@ -209,7 +209,6 @@ impl SteamOSManager {
self.proxy self.proxy
.call("SetWifiBackend", &(backend)) .call("SetWifiBackend", &(backend))
.await .await
.map_err(to_zbus_error)
} }
} }
@ -260,7 +259,6 @@ impl CpuScaling1 {
self.proxy self.proxy
.call("SetCpuScalingGovernor", &(governor)) .call("SetCpuScalingGovernor", &(governor))
.await .await
.map_err(to_zbus_error)
} }
} }
@ -311,7 +309,6 @@ impl GpuPerformanceLevel1 {
self.proxy self.proxy
.call("SetGpuPerformanceLevel", &(level)) .call("SetGpuPerformanceLevel", &(level))
.await .await
.map_err(to_zbus_error)
} }
#[zbus(property(emits_changed_signal = "false"))] #[zbus(property(emits_changed_signal = "false"))]
@ -327,7 +324,6 @@ impl GpuPerformanceLevel1 {
self.proxy self.proxy
.call("SetManualGpuClock", &(clocks)) .call("SetManualGpuClock", &(clocks))
.await .await
.map_err(to_zbus_error)
} }
#[zbus(property(emits_changed_signal = "const"))] #[zbus(property(emits_changed_signal = "const"))]
@ -369,7 +365,6 @@ impl GpuPowerProfile1 {
self.proxy self.proxy
.call("SetGpuPowerProfile", &(profile)) .call("SetGpuPowerProfile", &(profile))
.await .await
.map_err(to_zbus_error)
} }
} }
@ -385,7 +380,6 @@ impl GpuTdpLimit1 {
self.proxy self.proxy
.call("SetTdpLimit", &(limit)) .call("SetTdpLimit", &(limit))
.await .await
.map_err(to_zbus_error)
} }
#[zbus(property(emits_changed_signal = "const"))] #[zbus(property(emits_changed_signal = "const"))]
@ -515,7 +509,6 @@ impl WifiDebug1 {
self.proxy self.proxy
.call("SetWifiBackend", &(backend)) .call("SetWifiBackend", &(backend))
.await .await
.map_err(to_zbus_error)
} }
} }
@ -534,7 +527,6 @@ impl WifiPowerManagement1 {
self.proxy self.proxy
.call("SetWifiPowerManagementState", &(state)) .call("SetWifiPowerManagementState", &(state))
.await .await
.map_err(to_zbus_error)
} }
} }