We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56be326 + b38cc7b commit 082d576Copy full SHA for 082d576
test/src/helpers/exit_code.rs
@@ -4,7 +4,7 @@ use std::process::ExitStatus;
4
5
#[cfg(not(unix))]
6
pub fn get_exit_code(status: ExitStatus) -> Result<i32, String> {
7
- status.code().ok_or("received no exit code from child process".into())
+ status.code().ok_or_else(|| "received no exit code from child process".into())
8
}
9
10
#[cfg(unix)]
0 commit comments