Skip to content

Commit

Permalink
Add must_use to CommandExt::exec
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ryan747 authored Oct 17, 2024
1 parent 06d261d commit 09f75b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/os/unix/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09f75b9

Please sign in to comment.