add inline attribute to new method

This commit is contained in:
Jane Lusby 2022-01-31 11:57:17 -08:00
parent 91ffbc43b1
commit 19db85d6cd

View file

@ -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()
}