From a70d9b67708e1b691ec9296ef29bb4122732bb70 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 13 Feb 2022 14:53:14 +0100 Subject: [PATCH] fix(render): fix clippy warnings --- espanso-render/src/extension/exec_util.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/espanso-render/src/extension/exec_util.rs b/espanso-render/src/extension/exec_util.rs index 855ccc0..e602e72 100644 --- a/espanso-render/src/extension/exec_util.rs +++ b/espanso-render/src/extension/exec_util.rs @@ -40,7 +40,7 @@ pub fn determine_path_env_variable_override(explicit_shell: Option) -> } #[cfg(not(target_os = "macos"))] -pub fn determine_path_env_variable_override(explicit_shell: Option) -> Option { +pub fn determine_path_env_variable_override(_: Option) -> Option { None } @@ -97,8 +97,3 @@ fn launch_command_and_get_output(command: &str, args: &[&str]) -> Option let output_str = String::from_utf8_lossy(&output.stdout); Some(output_str.to_string()) } - -#[cfg(not(target_os = "macos"))] -fn launch_command_and_get_output(command: &str, args: &[&str]) -> Option { - None -}