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,
|
_ => break,
|
||||||
};
|
};
|
||||||
|
|
||||||
match mhz.parse() {
|
return Ok(mhz.parse()?);
|
||||||
Ok(mhz) => return Ok(mhz),
|
|
||||||
Err(e) => return Err(e.into()),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Err(anyhow!("Couldn't find GPU clocks"))
|
Err(anyhow!("Couldn't find GPU clocks"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue