[dep] update dep

This commit is contained in:
2025-03-24 09:55:21 +08:00
parent 8157c63b2e
commit 7a99672317
6 changed files with 152 additions and 28 deletions

View File

@@ -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)
}