Add must_use to CommandExt::exec · qinheping/verify-rust-std@d73f924 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit d73f924
Add must_use to CommandExt::exec
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 0 deletions
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 |