Skip to content

Commit

Permalink
renamed enum
Browse files Browse the repository at this point in the history
  • Loading branch information
F0903 committed Sep 12, 2024
1 parent f9721c5 commit 04ef4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autopower_proxy/src/config/power_scheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use windows::Win32::System::SystemServices::{
pub enum PowerScheme {
HighPerformance,
Balanced,
PowerSavings,
PowerSaver,
Custom(String),
}

Expand All @@ -17,7 +17,7 @@ impl PowerScheme {
match self {
Self::HighPerformance => GUID_MIN_POWER_SAVINGS,
Self::Balanced => GUID_TYPICAL_POWER_SAVINGS,
Self::PowerSavings => GUID_MAX_POWER_SAVINGS,
Self::PowerSaver => GUID_MAX_POWER_SAVINGS,
Self::Custom(val) => GUID::from(val.as_str()),
}
}
Expand Down

0 comments on commit 04ef4e2

Please sign in to comment.