Skip to content

Commit 19db85d

Browse files
committed
add inline attribute to new method
1 parent 91ffbc4 commit 19db85d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/process.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1683,8 +1683,9 @@ impl ExitCode {
16831683
// representation of an ExitCode
16841684
//
16851685
// More info: https://internals.rust-lang.org/t/mini-pre-rfc-redesigning-process-exitstatus/5426
1686-
#[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
16871686
/// Convert an ExitCode into an i32
1687+
#[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
1688+
#[inline]
16881689
pub fn to_i32(self) -> i32 {
16891690
self.0.as_i32()
16901691
}

0 commit comments

Comments
 (0)