diff options
Diffstat (limited to 'src/trace.rs')
-rw-r--r-- | src/trace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trace.rs b/src/trace.rs index b2880d5..e576320 100644 --- a/src/trace.rs +++ b/src/trace.rs @@ -9,7 +9,7 @@ use nix::{ use std::{fs::File, io::Write, os::unix::process::CommandExt, process::Command}; /// Exec the `command` value tracing it with `ptrace` lib -pub fn exec(command: &String) -> anyhow::Result<()> { +pub fn exec(command: &str) -> anyhow::Result<()> { let params: Vec<&str> = command.split(' ').collect(); let mut command = Command::new(params[0]); |