mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 03:06:47 -04:00
power: Move GPUPerformanceLevel::to_string to Display::fmt
This commit is contained in:
parent
b2f612cd45
commit
b7b09e6c17
2 changed files with 11 additions and 10 deletions
|
@ -197,7 +197,7 @@ async fn main() -> Result<()> {
|
|||
Commands::GetGPUPerformanceLevel => {
|
||||
let level = proxy.gpu_performance_level().await?;
|
||||
match GPUPerformanceLevel::try_from(level) {
|
||||
Ok(l) => println!("GPU performance level: {}", l.to_string()),
|
||||
Ok(l) => println!("GPU performance level: {}", l),
|
||||
Err(_) => println!("Got unknown value {level} from backend"),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue