diff options
Diffstat (limited to 'ctr-std/src/process.rs')
| -rw-r--r-- | ctr-std/src/process.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctr-std/src/process.rs b/ctr-std/src/process.rs index 00051d4..732f43c 100644 --- a/ctr-std/src/process.rs +++ b/ctr-std/src/process.rs @@ -1099,7 +1099,7 @@ impl fmt::Display for ExitStatus { /// [RFC #1937]: https://github.com/rust-lang/rfcs/pull/1937 #[derive(Clone, Copy, Debug)] #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] -pub struct ExitCode(imp::ExitCode); +pub struct ExitCode(pub u8); #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] impl ExitCode { @@ -1109,7 +1109,7 @@ impl ExitCode { /// termination, so there's no need to return this from `main` unless /// you're also returning other possible codes. #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] - pub const SUCCESS: ExitCode = ExitCode(imp::ExitCode::SUCCESS); + pub const SUCCESS: ExitCode = ExitCode(0 as _); /// The canonical ExitCode for unsuccessful termination on this platform. /// @@ -1117,7 +1117,7 @@ impl ExitCode { /// instead returning `Err(_)` and `Ok(())` respectively, which will /// return the same codes (but will also `eprintln!` the error). #[unstable(feature = "process_exitcode_placeholder", issue = "48711")] - pub const FAILURE: ExitCode = ExitCode(imp::ExitCode::FAILURE); + pub const FAILURE: ExitCode = ExitCode(-1 as _); } impl Child { @@ -1493,7 +1493,7 @@ impl<E: fmt::Debug> Termination for Result<!, E> { impl Termination for ExitCode { #[inline] fn report(self) -> i32 { - self.0.as_i32() + self.0 as i32 } } |