Fix some clippy warnings

This commit is contained in:
Vicki Pfau 2024-09-09 20:00:53 -07:00
parent bdd095860e
commit fb6e86d5e8
2 changed files with 3 additions and 3 deletions

View file

@ -174,7 +174,7 @@ async fn get_all_properties(conn: &Connection) -> Result<()> {
let introspection = Node::from_reader(Cursor::new(introspection))?;
let properties_proxy = PropertiesProxy::new(
&conn,
conn,
"com.steampowered.SteamOSManager1",
"/com/steampowered/SteamOSManager1",
)

View file

@ -432,7 +432,7 @@ impl TdpLimit1 {
async fn tdp_limit_min(&self) -> u32 {
get_tdp_limit_range()
.await
.and_then(|(min, _)| Ok(min))
.map(|(min, _)| min)
.unwrap_or(0)
}
@ -440,7 +440,7 @@ impl TdpLimit1 {
async fn tdp_limit_max(&self) -> u32 {
get_tdp_limit_range()
.await
.and_then(|(_, max)| Ok(max))
.map(|(_, max)| max)
.unwrap_or(0)
}
}