aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/process.rs
diff options
context:
space:
mode:
authorValentin <[email protected]>2018-06-15 18:57:24 +0200
committerFenrirWolf <[email protected]>2018-06-15 10:57:24 -0600
commitf2a90174bb36b9ad528e863ab34c02ebce002b02 (patch)
tree959e8d67883d3a89e179b3549b1f30d28e51a87c /ctr-std/src/process.rs
parentMerge pull request #68 from linouxis9/master (diff)
downloadctru-rs-f2a90174bb36b9ad528e863ab34c02ebce002b02.tar.xz
ctru-rs-f2a90174bb36b9ad528e863ab34c02ebce002b02.zip
Update for latest nightly 2018-06-09 (#70)
* Update for latest nightly 2018-06-09 * We now have a proper horizon os and sys modules in libstd
Diffstat (limited to 'ctr-std/src/process.rs')
-rw-r--r--ctr-std/src/process.rs8
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
}
}