summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-08-20 19:57:10 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-08-20 19:57:10 -0500
commite479e8fd48952ae9fdedfb4c7ae57fc722cc15e2 (patch)
tree5c20cbf438c62427d1265484f1073607987aac0c /src/unistd.rs
parent2a8b438860ed37d515ed2cf854a9cd7cfaef35d5 (diff)
downloadnix-e479e8fd48952ae9fdedfb4c7ae57fc722cc15e2.zip
Remove MSRV-related workaround for doc aliases
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 42e1456a..02fe4ff6 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -79,13 +79,13 @@ impl Uid {
}
/// Returns Uid of calling process. This is practically a more Rusty alias for `getuid`.
- #[cfg_attr(has_doc_alias, doc(alias("getuid")))]
+ #[doc(alias("getuid"))]
pub fn current() -> Self {
getuid()
}
/// Returns effective Uid of calling process. This is practically a more Rusty alias for `geteuid`.
- #[cfg_attr(has_doc_alias, doc(alias("geteuid")))]
+ #[doc(alias("geteuid"))]
pub fn effective() -> Self {
geteuid()
}
@@ -136,13 +136,13 @@ impl Gid {
}
/// Returns Gid of calling process. This is practically a more Rusty alias for `getgid`.
- #[cfg_attr(has_doc_alias, doc(alias("getgid")))]
+ #[doc(alias("getgid"))]
pub fn current() -> Self {
getgid()
}
/// Returns effective Gid of calling process. This is practically a more Rusty alias for `getegid`.
- #[cfg_attr(has_doc_alias, doc(alias("getegid")))]
+ #[doc(alias("getegid"))]
pub fn effective() -> Self {
getegid()
}
@@ -188,13 +188,13 @@ impl Pid {
}
/// Returns PID of calling process
- #[cfg_attr(has_doc_alias, doc(alias("getpid")))]
+ #[doc(alias("getpid"))]
pub fn this() -> Self {
getpid()
}
/// Returns PID of parent of calling process
- #[cfg_attr(has_doc_alias, doc(alias("getppid")))]
+ #[doc(alias("getppid"))]
pub fn parent() -> Self {
getppid()
}