From 188170223bb1aa50431a3bcfc0e24cb934525c09 Mon Sep 17 00:00:00 2001 From: TheAlexDev23 Date: Mon, 14 Oct 2024 13:09:24 +0200 Subject: [PATCH] Fix clippy error --- crates/power-daemon/src/helpers/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/power-daemon/src/helpers/commands.rs b/crates/power-daemon/src/helpers/commands.rs index 55ea316..305d4cd 100644 --- a/crates/power-daemon/src/helpers/commands.rs +++ b/crates/power-daemon/src/helpers/commands.rs @@ -19,7 +19,7 @@ pub fn run_command(command_name: &str) { let output = command .spawn() - .expect(&format!("Could not spawn command: {command_name}")) + .unwrap_or_else(|e| panic!("Could not run command {command_name}: {e}")) .wait_with_output() .expect("Could not wait command");