mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-08 15:40:34 -04:00
Run cargo fmt
This commit is contained in:
parent
fb6e86d5e8
commit
111498513b
1 changed files with 2 additions and 8 deletions
|
@ -430,18 +430,12 @@ impl TdpLimit1 {
|
||||||
|
|
||||||
#[zbus(property(emits_changed_signal = "const"))]
|
#[zbus(property(emits_changed_signal = "const"))]
|
||||||
async fn tdp_limit_min(&self) -> u32 {
|
async fn tdp_limit_min(&self) -> u32 {
|
||||||
get_tdp_limit_range()
|
get_tdp_limit_range().await.map(|(min, _)| min).unwrap_or(0)
|
||||||
.await
|
|
||||||
.map(|(min, _)| min)
|
|
||||||
.unwrap_or(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property(emits_changed_signal = "const"))]
|
#[zbus(property(emits_changed_signal = "const"))]
|
||||||
async fn tdp_limit_max(&self) -> u32 {
|
async fn tdp_limit_max(&self) -> u32 {
|
||||||
get_tdp_limit_range()
|
get_tdp_limit_range().await.map(|(_, max)| max).unwrap_or(0)
|
||||||
.await
|
|
||||||
.map(|(_, max)| max)
|
|
||||||
.unwrap_or(0)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue