mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add must_use to CommandExt::exec
This commit is contained in:
@@ -154,6 +154,7 @@ unsafe fn before_exec<F>(&mut self, f: F) -> &mut process::Command
|
||||
/// required to gracefully handle errors it is recommended to use the
|
||||
/// cross-platform `spawn` instead.
|
||||
#[stable(feature = "process_exec2", since = "1.9.0")]
|
||||
#[must_use]
|
||||
fn exec(&mut self) -> io::Error;
|
||||
|
||||
/// Set executable argument
|
||||
|
||||
Reference in New Issue
Block a user