Skip to content

Commit d73f924

Browse files
authored
Add must_use to CommandExt::exec
1 parent 6c85d31 commit d73f924

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)