Skip to content

Commit 1f1d49a

Browse files
committed
impl Default for ExitStatus
1 parent 2d213f7 commit 1f1d49a

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

library/std/src/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ impl From<fs::File> for Stdio {
14601460
// vs `_exit`. Naming of Unix system calls is not standardised across Unices, so terminology is a
14611461
// matter of convention and tradition. For clarity we usually speak of `exit`, even when we might
14621462
// mean an underlying system call such as `_exit`.
1463-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
1463+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
14641464
#[stable(feature = "process", since = "1.0.0")]
14651465
pub struct ExitStatus(imp::ExitStatus);
14661466

library/std/src/sys/unix/process/process_fuchsia.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl Process {
237237
}
238238
}
239239

240-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
240+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
241241
pub struct ExitStatus(i64);
242242

243243
impl ExitStatus {

library/std/src/sys/unix/process/process_unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ impl Process {
647647
//
648648
// This is not actually an "exit status" in Unix terminology. Rather, it is a "wait status".
649649
// See the discussion in comments and doc comments for `std::process::ExitStatus`.
650-
#[derive(PartialEq, Eq, Clone, Copy)]
650+
#[derive(PartialEq, Eq, Clone, Copy, Default)]
651651
pub struct ExitStatus(c_int);
652652

653653
impl fmt::Debug for ExitStatus {

library/std/src/sys/unix/process/process_unsupported.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Process {
5555
}
5656
}
5757

58-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
58+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
5959
pub struct ExitStatus(c_int);
6060

6161
impl ExitStatus {

library/std/src/sys/unix/process/process_vxworks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl Process {
182182
}
183183

184184
/// Unix exit statuses
185-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
185+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
186186
pub struct ExitStatus(c_int);
187187

188188
impl ExitStatus {

library/std/src/sys/unsupported/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl fmt::Debug for Command {
9999
}
100100
}
101101

102-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
102+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
103103
#[non_exhaustive]
104104
pub struct ExitStatus();
105105

library/std/src/sys/windows/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ impl Process {
647647
}
648648
}
649649

650-
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
650+
#[derive(PartialEq, Eq, Clone, Copy, Debug, Default)]
651651
pub struct ExitStatus(c::DWORD);
652652

653653
impl ExitStatus {

0 commit comments

Comments
 (0)