From 0b388e2ae36cd771406f66d5d36a03212ebbd681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Tue, 7 Dec 2021 16:00:31 +0100 Subject: [PATCH] Clippy fixed. Fix openrc files --- amdgpu-config/src/fan.rs | 12 ++++-------- services/amdfand | 1 + services/amdmond | 1 + services/amdvold | 1 + 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/amdgpu-config/src/fan.rs b/amdgpu-config/src/fan.rs index ca221f4..e310c18 100644 --- a/amdgpu-config/src/fan.rs +++ b/amdgpu-config/src/fan.rs @@ -153,8 +153,7 @@ pub fn load_config(config_path: &str) -> Result { 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 { 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 { 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 { current: matrix_point.temp, last: last_point.temp, index, - } - .into()); + }); } } diff --git a/services/amdfand b/services/amdfand index 4b52052..68e245c 100755 --- a/services/amdfand +++ b/services/amdfand @@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid" command="/usr/bin/amdfand" command_args="service" command_user="root" +command_background=true depend() { need udev diff --git a/services/amdmond b/services/amdmond index 0d35b79..1f9bffb 100755 --- a/services/amdmond +++ b/services/amdmond @@ -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 diff --git a/services/amdvold b/services/amdvold index fb6dc1a..093098c 100755 --- a/services/amdvold +++ b/services/amdvold @@ -5,6 +5,7 @@ pidfile="/run/${SVCNAME}.pid" command="/usr/bin/amdvold" command_args="service" command_user="root" +command_background=true depend() { need udev