Skip to content

Commit 50749bf

Browse files
committed
++
1 parent 9dd40fc commit 50749bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/windows.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ impl Display for ExitCode {
110110
#[cfg(all(windows, feature = "std"))]
111111
impl From<&std::process::ExitStatus> for ExitCode {
112112
fn from(status: &std::process::ExitStatus) -> ExitCode {
113-
ExitCode::from_raw(status.code().expect("cannot fail on Windows"))
113+
ExitCode::from_raw(
114+
status
115+
.code()
116+
.expect("cannot fail on Windows")
117+
.try_into()
118+
.unwrap(),
119+
)
114120
}
115121
}
116122

0 commit comments

Comments
 (0)