@@ -21,17 +21,17 @@ fn exec_command(
2121) -> Result < ExitStatus , String > {
2222 let status = get_command_inner ( input, cwd, env)
2323 . spawn ( )
24- . map_err ( |e| command_error ( input, & cwd, e) ) ?
24+ . map_err ( |e| command_error ( input, cwd, e) ) ?
2525 . wait ( )
26- . map_err ( |e| command_error ( input, & cwd, e) ) ?;
26+ . map_err ( |e| command_error ( input, cwd, e) ) ?;
2727 #[ cfg( unix) ]
2828 {
2929 if let Some ( signal) = status. signal ( ) {
3030 unsafe {
3131 raise ( signal as _ ) ;
3232 }
3333 // 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) ) ) ;
3535 }
3636 }
3737 Ok ( status)
@@ -112,7 +112,7 @@ pub fn run_command_with_env(
112112 env : Option < & HashMap < String , String > > ,
113113) -> Result < Output , String > {
114114 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) ) ?;
116116 check_exit_status ( input, cwd, output. status , Some ( & output) , true ) ?;
117117 Ok ( output)
118118}
0 commit comments