From d73f9242eaba443d59e85c3339c5be3a73e91f53 Mon Sep 17 00:00:00 2001 From: Callum Ryan Date: Thu, 17 Oct 2024 05:46:11 -0700 Subject: [PATCH] Add must_use to CommandExt::exec --- std/src/os/unix/process.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/std/src/os/unix/process.rs b/std/src/os/unix/process.rs index 9aadd9491169f..ef5adaf229088 100644 --- a/std/src/os/unix/process.rs +++ b/std/src/os/unix/process.rs @@ -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