diff options
| author | Callum Ryan <callumryan@meta.com> | 2024-10-17 05:46:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 05:46:11 -0700 |
| commit | 09f75b9862736d38d41a40c5326788d32c3c8276 (patch) | |
| tree | c51ef7cf76aab56cc18a3150edfd0923f2f3faff /library/std/src/os/unix/process.rs | |
| parent | 06d261daf62620e3449ba451898c7ad9ae750f41 (diff) | |
| download | rust-09f75b9862736d38d41a40c5326788d32c3c8276.tar.gz rust-09f75b9862736d38d41a40c5326788d32c3c8276.zip | |
Add must_use to CommandExt::exec
Diffstat (limited to 'library/std/src/os/unix/process.rs')
| -rw-r--r-- | library/std/src/os/unix/process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/unix/process.rs b/library/std/src/os/unix/process.rs index 9aadd949116..ef5adaf2290 100644 --- a/library/std/src/os/unix/process.rs +++ b/library/std/src/os/unix/process.rs @@ -154,6 +154,7 @@ pub trait CommandExt: Sealed { /// 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 |
