From 52629de98da89f65d7f467fee5a8ba8a5ec2e5b5 Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 8 May 2023 14:11:35 +0200 Subject: [PATCH] fix: clean code some more --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 382a223..2908fa6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,11 +66,8 @@ fn main() { }; if let Some(process) = &config.ffmpeg.process { if (process.niceness.unwrap_or(0)) > 0 { - match renice(child.id(), process.niceness.unwrap_or(0)) { - Ok(_) => {} - Err(e) => { - error!("Failed to renice ffmpeg process: {}", e); - } + if let Err(e) = renice(child.id(), process.niceness.unwrap_or(0)) { + error!("Failed to renice ffmpeg process: {}", e); } } }