Add must_use to CommandExt::exec · qinheping/verify-rust-std@d73f924 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit d73f924

Add must_use to CommandExt::exec

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -154,6 +154,7 @@ pub trait CommandExt: Sealed {
154 154 /// required to gracefully handle errors it is recommended to use the
155 155 /// cross-platform `spawn` instead.
156 156 #[stable(feature = "process_exec2", since = "1.9.0")]
157 +#[must_use]
157 158 fn exec(&mut self) -> io::Error;
158 159
159 160 /// Set executable argument