Skip to content

Commit 09f75b9

Browse files
authored
Add must_use to CommandExt::exec
1 parent 06d261d commit 09f75b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/os/unix/process.rs

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ pub trait CommandExt: Sealed {
154154
/// required to gracefully handle errors it is recommended to use the
155155
/// cross-platform `spawn` instead.
156156
#[stable(feature = "process_exec2", since = "1.9.0")]
157+
#[must_use]
157158
fn exec(&mut self) -> io::Error;
158159

159160
/// Set executable argument

0 commit comments

Comments
 (0)