Clippy fixed. Fix openrc files
This commit is contained in:
parent
5698ab15d8
commit
0b388e2ae3
@ -153,8 +153,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
||||
return Err(ConfigError::FanSpeedTooLow {
|
||||
value: matrix_point.speed,
|
||||
index,
|
||||
}
|
||||
.into());
|
||||
});
|
||||
}
|
||||
if matrix_point.speed > 100f64 {
|
||||
log::error!(
|
||||
@ -164,8 +163,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
||||
return Err(ConfigError::FanSpeedTooHigh {
|
||||
value: matrix_point.speed,
|
||||
index,
|
||||
}
|
||||
.into());
|
||||
});
|
||||
}
|
||||
if let Some(last_point) = last_point {
|
||||
if matrix_point.speed < last_point.speed {
|
||||
@ -179,8 +177,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
||||
current: matrix_point.speed,
|
||||
last: last_point.speed,
|
||||
index,
|
||||
}
|
||||
.into());
|
||||
});
|
||||
}
|
||||
if matrix_point.temp < last_point.temp {
|
||||
log::error!(
|
||||
@ -193,8 +190,7 @@ pub fn load_config(config_path: &str) -> Result<Config, ConfigError> {
|
||||
current: matrix_point.temp,
|
||||
last: last_point.temp,
|
||||
index,
|
||||
}
|
||||
.into());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
||||
command="/usr/bin/amdfand"
|
||||
command_args="service"
|
||||
command_user="root"
|
||||
command_background=true
|
||||
|
||||
depend() {
|
||||
need udev
|
||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
||||
command="/usr/bin/amdfand log_file -s /var/log/amdmon.csv"
|
||||
command_args="service"
|
||||
command_user="root"
|
||||
command_background=true
|
||||
|
||||
depend() {
|
||||
need udev
|
||||
|
@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid"
|
||||
command="/usr/bin/amdvold"
|
||||
command_args="service"
|
||||
command_user="root"
|
||||
command_background=true
|
||||
|
||||
depend() {
|
||||
need udev
|
||||
|
Loading…
Reference in New Issue
Block a user