mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 09:22:26 -04:00
power: Idiom fix
This commit is contained in:
parent
30073d006e
commit
a182d580fd
1 changed files with 1 additions and 4 deletions
|
@ -143,10 +143,7 @@ pub async fn get_gpu_clocks() -> Result<u32> {
|
|||
_ => break,
|
||||
};
|
||||
|
||||
match mhz.parse() {
|
||||
Ok(mhz) => return Ok(mhz),
|
||||
Err(e) => return Err(e.into()),
|
||||
}
|
||||
return Ok(mhz.parse()?);
|
||||
}
|
||||
Err(anyhow!("Couldn't find GPU clocks"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue