mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-07 23:20:31 -04:00
Fix some clippy warnings
This commit is contained in:
parent
bdd095860e
commit
fb6e86d5e8
2 changed files with 3 additions and 3 deletions
|
@ -174,7 +174,7 @@ async fn get_all_properties(conn: &Connection) -> Result<()> {
|
||||||
let introspection = Node::from_reader(Cursor::new(introspection))?;
|
let introspection = Node::from_reader(Cursor::new(introspection))?;
|
||||||
|
|
||||||
let properties_proxy = PropertiesProxy::new(
|
let properties_proxy = PropertiesProxy::new(
|
||||||
&conn,
|
conn,
|
||||||
"com.steampowered.SteamOSManager1",
|
"com.steampowered.SteamOSManager1",
|
||||||
"/com/steampowered/SteamOSManager1",
|
"/com/steampowered/SteamOSManager1",
|
||||||
)
|
)
|
||||||
|
|
|
@ -432,7 +432,7 @@ impl TdpLimit1 {
|
||||||
async fn tdp_limit_min(&self) -> u32 {
|
async fn tdp_limit_min(&self) -> u32 {
|
||||||
get_tdp_limit_range()
|
get_tdp_limit_range()
|
||||||
.await
|
.await
|
||||||
.and_then(|(min, _)| Ok(min))
|
.map(|(min, _)| min)
|
||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ impl TdpLimit1 {
|
||||||
async fn tdp_limit_max(&self) -> u32 {
|
async fn tdp_limit_max(&self) -> u32 {
|
||||||
get_tdp_limit_range()
|
get_tdp_limit_range()
|
||||||
.await
|
.await
|
||||||
.and_then(|(_, max)| Ok(max))
|
.map(|(_, max)| max)
|
||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue