about summary refs log tree commit diff
path: root/library/std/src/os/unix/process.rs
diff options
context:
space:
mode:
authorJohn Kugelman <john@kugelman.name>2021-10-30 23:37:32 -0400
committerJohn Kugelman <john@kugelman.name>2021-10-30 23:37:32 -0400
commita81d4b18ea7ee03733e983974400816684f78ebe (patch)
tree6ad8f58e2ef27985c4350a332d5e8ec77ee2b3f9 /library/std/src/os/unix/process.rs
parente249ce6b2345587d6e11052779c86adbad626dff (diff)
downloadrust-a81d4b18ea7ee03733e983974400816684f78ebe.tar.gz
rust-a81d4b18ea7ee03733e983974400816684f78ebe.zip
Add #[must_use] to remaining std functions (O-Z)
Diffstat (limited to 'library/std/src/os/unix/process.rs')
-rw-r--r--library/std/src/os/unix/process.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/unix/process.rs b/library/std/src/os/unix/process.rs
index 9b94615d247..286a7c3b386 100644
--- a/library/std/src/os/unix/process.rs
+++ b/library/std/src/os/unix/process.rs
@@ -436,6 +436,7 @@ impl From<crate::process::ChildStderr> for OwnedFd {
 }
 
 /// Returns the OS-assigned process identifier associated with this process's parent.
+#[must_use]
 #[stable(feature = "unix_ppid", since = "1.27.0")]
 pub fn parent_id() -> u32 {
     crate::sys::os::getppid()