mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 17:32:21 -04:00
Fix clippy warnings, and an actual bug with FanControl::try_from<u32>
This commit is contained in:
parent
9d7ee926f4
commit
b962bbf548
6 changed files with 21 additions and 21 deletions
|
@ -80,7 +80,7 @@ pub async fn get_gpu_performance_level() -> Result<GPUPerformanceLevel> {
|
|||
.await
|
||||
.inspect_err(|message| error!("Error opening sysfs file for reading: {message}"))?;
|
||||
|
||||
GPUPerformanceLevel::from_str(level.trim().as_ref())
|
||||
GPUPerformanceLevel::from_str(level.trim())
|
||||
}
|
||||
|
||||
pub async fn set_gpu_performance_level(level: GPUPerformanceLevel) -> Result<()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue