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); } } }