Add must_use to CommandExt::exec

This commit is contained in:
Callum Ryan 2024-10-17 05:46:11 -07:00 committed by GitHub
parent 06d261daf6
commit 09f75b9862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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