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.
2 parents 069cede + e1ca02e commit 993dee4Copy full SHA for 993dee4
src/libstd/io/process.rs
@@ -170,7 +170,7 @@ pub enum StdioContainer {
170
171
/// Describes the result of a process after it has terminated.
172
/// Note that Windows have no signals, so the result is usually ExitStatus.
173
-#[deriving(Eq)]
+#[deriving(Eq, TotalEq, Clone)]
174
pub enum ProcessExit {
175
/// Normal termination with an exit status.
176
ExitStatus(int),
@@ -460,6 +460,7 @@ mod tests {
460
assert!(p.is_ok());
461
let mut p = p.unwrap();
462
assert!(p.wait().matches_exit_status(1));
463
+ drop(p.wait().clone());
464
})
465
466
#[cfg(unix, not(target_os="android"))]
0 commit comments