From 6c341cddabcff6e11e1d1357952ec62d6734e177 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 15 Oct 2023 21:10:24 +0200 Subject: Fix clippy --- src/trace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/trace.rs') 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]); -- cgit v1.2.3-18-g5258