Skip to content

Commit d0554f9

Browse files
committed
rustfmt
1 parent f781152 commit d0554f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/cargo-util/src/process_error.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::process::{ExitStatus, Output};
55
use std::str;
66

77
#[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.
99
pub struct ProcessError {
1010
/// Error message
1111
pub msg: String,
@@ -66,7 +66,11 @@ impl ProcessError {
6666
///
6767
/// * `status` can be `None` if the process did not launch.
6868
/// * `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 {
7074
let exit = match status {
7175
Some(s) => exit_status_to_string(s),
7276
None => "never executed".to_string(),

0 commit comments

Comments
 (0)