File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::process::{ExitStatus, Output};
5
5
use std:: str;
6
6
7
7
#[ derive( Debug ) ]
8
- // It's not storing `ExitCode` or `Output`, because outputs can be cached and have to be serde-serializable.
8
+ // It's not storing `ExitCode` or `Output`, because outputs can be cached and have to be serde-serializable.
9
9
pub struct ProcessError {
10
10
/// Error message
11
11
pub msg : String ,
@@ -66,7 +66,11 @@ impl ProcessError {
66
66
///
67
67
/// * `status` can be `None` if the process did not launch.
68
68
/// * `output` can be `None` if the process did not launch, or output was not captured.
69
- pub fn new ( msg : impl Into < String > , status : Option < ExitStatus > , output : Option < & Output > ) -> ProcessError {
69
+ pub fn new (
70
+ msg : impl Into < String > ,
71
+ status : Option < ExitStatus > ,
72
+ output : Option < & Output > ,
73
+ ) -> ProcessError {
70
74
let exit = match status {
71
75
Some ( s) => exit_status_to_string ( s) ,
72
76
None => "never executed" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments