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.
1 parent d345658 commit 983b196Copy full SHA for 983b196
src/unix/wait_status.rs
@@ -1,5 +1,3 @@
1
-use std::os::unix::process::ExitStatusExt;
2
-
3
use super::{ExitCode, Signal, WaitState};
4
5
/// A Unix-like wait status.
@@ -80,6 +78,7 @@ impl From<&std::process::ExitStatus> for WaitStatus {
80
78
if let Some(code) = status.code() {
81
79
WaitStatus::from_raw(code)
82
} else {
+ use std::os::unix::process::ExitStatusExt;
83
WaitStatus::from_raw(status.into_raw())
84
}
85
@@ -88,6 +87,7 @@ impl From<&std::process::ExitStatus> for WaitStatus {
88
87
#[cfg(all(unix, feature = "std"))]
89
impl From<&WaitStatus> for std::process::ExitStatus {
90
fn from(status: &WaitStatus) -> Self {
91
std::process::ExitStatus::from_raw(status.to_raw())
92
93
0 commit comments