@@ -21,17 +21,17 @@ fn exec_command(
21
21
) -> Result < ExitStatus , String > {
22
22
let status = get_command_inner ( input, cwd, env)
23
23
. spawn ( )
24
- . map_err ( |e| command_error ( input, & cwd, e) ) ?
24
+ . map_err ( |e| command_error ( input, cwd, e) ) ?
25
25
. wait ( )
26
- . map_err ( |e| command_error ( input, & cwd, e) ) ?;
26
+ . map_err ( |e| command_error ( input, cwd, e) ) ?;
27
27
#[ cfg( unix) ]
28
28
{
29
29
if let Some ( signal) = status. signal ( ) {
30
30
unsafe {
31
31
raise ( signal as _ ) ;
32
32
}
33
33
// In case the signal didn't kill the current process.
34
- return Err ( command_error ( input, & cwd, format ! ( "Process received signal {}" , signal) ) ) ;
34
+ return Err ( command_error ( input, cwd, format ! ( "Process received signal {}" , signal) ) ) ;
35
35
}
36
36
}
37
37
Ok ( status)
@@ -112,7 +112,7 @@ pub fn run_command_with_env(
112
112
env : Option < & HashMap < String , String > > ,
113
113
) -> Result < Output , String > {
114
114
let output =
115
- get_command_inner ( input, cwd, env) . output ( ) . map_err ( |e| command_error ( input, & cwd, e) ) ?;
115
+ get_command_inner ( input, cwd, env) . output ( ) . map_err ( |e| command_error ( input, cwd, e) ) ?;
116
116
check_exit_status ( input, cwd, output. status , Some ( & output) , true ) ?;
117
117
Ok ( output)
118
118
}
0 commit comments