diff --git a/src/command.rs b/src/command.rs index 128556b..4170a4e 100644 --- a/src/command.rs +++ b/src/command.rs @@ -58,7 +58,8 @@ impl Command for UnixProgram { exit_code } else { - error::print_error(format!("{}: command not found", program)); + let message = format!("{}: command not found", &program); + error::print_error(message); ExitCode::new(127) } }