Fix rog-control-center notifs

This commit is contained in:
Luke D. Jones
2022-11-06 14:36:29 +13:00
parent 688e3a7358
commit 0b71104833
9 changed files with 200 additions and 438 deletions

View File

@@ -2,6 +2,7 @@ pub mod error;
pub mod fan_curve_set;
use std::{
fmt::Display,
fs::OpenOptions,
io::{Read, Write},
path::Path,
@@ -113,6 +114,12 @@ impl std::str::FromStr for Profile {
}
}
impl Display for Profile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
#[cfg_attr(feature = "dbus", derive(Type))]
#[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone, Copy)]
pub enum FanCurvePU {