We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60d63f commit b8f6d48Copy full SHA for b8f6d48
library/std/src/process.rs
@@ -1960,6 +1960,14 @@ impl ExitCode {
1960
}
1961
1962
1963
+/// The default value is [`ExitCode::SUCCESS`]
1964
+#[stable(feature = "process-exitcode-default", since = "CURRENT_RUSTC_VERSION")]
1965
+impl Default for ExitCode {
1966
+ fn default() -> Self {
1967
+ ExitCode::SUCCESS
1968
+ }
1969
+}
1970
+
1971
#[stable(feature = "process_exitcode", since = "1.61.0")]
1972
impl From<u8> for ExitCode {
1973
/// Construct an `ExitCode` from an arbitrary u8 value.
0 commit comments