Skip to content

Commit 983b196

Browse files
committed
++
1 parent d345658 commit 983b196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/wait_status.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::os::unix::process::ExitStatusExt;
2-
31
use super::{ExitCode, Signal, WaitState};
42

53
/// A Unix-like wait status.
@@ -80,6 +78,7 @@ impl From<&std::process::ExitStatus> for WaitStatus {
8078
if let Some(code) = status.code() {
8179
WaitStatus::from_raw(code)
8280
} else {
81+
use std::os::unix::process::ExitStatusExt;
8382
WaitStatus::from_raw(status.into_raw())
8483
}
8584
}
@@ -88,6 +87,7 @@ impl From<&std::process::ExitStatus> for WaitStatus {
8887
#[cfg(all(unix, feature = "std"))]
8988
impl From<&WaitStatus> for std::process::ExitStatus {
9089
fn from(status: &WaitStatus) -> Self {
90+
use std::os::unix::process::ExitStatusExt;
9191
std::process::ExitStatus::from_raw(status.to_raw())
9292
}
9393
}

0 commit comments

Comments
 (0)