[dep] update dep
This commit is contained in:
@@ -54,6 +54,9 @@ pub fn get_powerplan() -> Result<i32, String> {
|
||||
#[cfg(target_os = "windows")]
|
||||
let powerplan = powerplan::get_powerplan()?;
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let powerplan = powerplan::PowerPlanMode::Other.into();
|
||||
|
||||
Ok(powerplan)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user