Skip to content

Commit 31f6acc

Browse files
committed
Mark std::process::Command as #[must_use]
For the same reason as futures. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
1 parent 4921c37 commit 31f6acc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/process.rs

+1
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ impl fmt::Debug for ChildStderr {
507507
/// assert!(status.success());
508508
/// ```
509509
#[stable(feature = "process", since = "1.0.0")]
510+
#[must_use = "this Command does not do anything unless it is run, eg using `status` or `spawn`"]
510511
pub struct Command {
511512
inner: imp::Command,
512513
}

0 commit comments

Comments
 (0)