Skip to content

Commit

Permalink
add inline attribute to new method
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed Jan 31, 2022
1 parent 91ffbc4 commit 19db85d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1683,8 +1683,9 @@ impl ExitCode {
// representation of an ExitCode
//
// More info: https://internals.rust-lang.org/t/mini-pre-rfc-redesigning-process-exitstatus/5426
#[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
/// Convert an ExitCode into an i32
#[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
#[inline]
pub fn to_i32(self) -> i32 {
self.0.as_i32()
}
Expand Down

0 comments on commit 19db85d

Please sign in to comment.