We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 139b49b commit 01494daCopy full SHA for 01494da
library/std/src/process.rs
@@ -1890,6 +1890,14 @@ impl ExitCode {
1890
}
1891
1892
1893
+/// The default value is [`ExitCode::SUCCESS`]
1894
+#[stable(feature = "process-exitcode-default", since = "CURRENT_RUSTC_VERSION")]
1895
+impl Default for ExitCode {
1896
+ fn default() -> Self {
1897
+ ExitCode::SUCCESS
1898
+ }
1899
+}
1900
+
1901
#[stable(feature = "process_exitcode", since = "1.61.0")]
1902
impl From<u8> for ExitCode {
1903
/// Construct an `ExitCode` from an arbitrary u8 value.
0 commit comments