mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Add must_use to CommandExt::exec
This commit is contained in:
parent
06d261daf6
commit
09f75b9862
@ -154,6 +154,7 @@ pub trait CommandExt: Sealed {
|
|||||||
/// required to gracefully handle errors it is recommended to use the
|
/// required to gracefully handle errors it is recommended to use the
|
||||||
/// cross-platform `spawn` instead.
|
/// cross-platform `spawn` instead.
|
||||||
#[stable(feature = "process_exec2", since = "1.9.0")]
|
#[stable(feature = "process_exec2", since = "1.9.0")]
|
||||||
|
#[must_use]
|
||||||
fn exec(&mut self) -> io::Error;
|
fn exec(&mut self) -> io::Error;
|
||||||
|
|
||||||
/// Set executable argument
|
/// Set executable argument
|
||||||
|
Loading…
Reference in New Issue
Block a user