Fixed crash on no power state

This commit is contained in:
Ilya Zlobintsev 2020-11-23 19:13:07 +02:00
parent e52101a6a2
commit 80c1b12802

View File

@ -173,7 +173,6 @@ fn build_ui(application: &gtk::Application) {
println!("Set current gpu id to {}", current_gpu_id); println!("Set current gpu id to {}", current_gpu_id);
set_info(&builder, d, current_gpu_id.clone(), &gpu_power_level, &vram_power_level); set_info(&builder, d, current_gpu_id.clone(), &gpu_power_level, &vram_power_level);
println!("{}", gpu_power_level.lock().unwrap().expect("No power state"));
}); });
} }