summaryrefslogtreecommitdiffstats
path: root/src/event_exec.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-04-11 17:45:13 +0200
committerqkzk <qu3nt1n@gmail.com>2023-04-11 17:45:13 +0200
commit46be68424e70672e33be2976b4e5a0bd54d2e0c8 (patch)
tree8d02e20367b7f09330e1774c6bda69df0fe073b0 /src/event_exec.rs
parent56cdd9821560ae724688191e62f70bcafd98c11e (diff)
allow generic types for executable in execute commands
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r--src/event_exec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs
index 6857278..7af037c 100644
--- a/src/event_exec.rs
+++ b/src/event_exec.rs
@@ -366,7 +366,7 @@ impl EventExec {
let Ok(executable) = which::which(executable) else { return Ok(()); };
let params: Vec<&str> = args.iter().map(|s| s.as_str()).collect();
execute_in_child_without_output_with_path(
- executable.to_str().context("Couldn't parse the path")?,
+ executable,
tab.directory_of_selected()?,
Some(&params),
)?;
@@ -1989,7 +1989,7 @@ impl EventExec {
let mut args = parser.compute(status)?;
let command = args.remove(0);
let args: Vec<&str> = args.iter().map(|s| &**s).collect();
- let output = execute_and_capture_output_without_check(&command, &args)?;
+ let output = execute_and_capture_output_without_check(command, &args)?;
info!("output {output}");
Ok(())
}