Reformat with trailing comma

This commit is contained in:
Luke Jones
2025-02-14 16:06:20 +13:00
parent 0bdf0474c9
commit 2c006699f2
113 changed files with 791 additions and 792 deletions

View File

@@ -36,7 +36,7 @@ pub struct CurveData {
pub fan: FanCurvePU,
pub pwm: [u8; 8],
pub temp: [u8; 8],
pub enabled: bool
pub enabled: bool,
}
impl From<&CurveData> for String {
@@ -99,7 +99,7 @@ impl std::str::FromStr for CurveData {
if select == 0 {
if temp_prev > r {
return Err(ProfileError::ParseFanCurvePrevHigher(
"temperature", temp_prev, r
"temperature", temp_prev, r,
));
}
temp_prev = r;
@@ -114,7 +114,7 @@ impl std::str::FromStr for CurveData {
}
if pwm_prev > p {
return Err(ProfileError::ParseFanCurvePrevHigher(
"percentage", pwm_prev, p
"percentage", pwm_prev, p,
));
}
pwm_prev = p;
@@ -126,7 +126,7 @@ impl std::str::FromStr for CurveData {
fan: FanCurvePU::CPU,
pwm,
temp,
enabled: false
enabled: false,
})
}
}