diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-08-20 19:57:10 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-08-20 19:57:10 -0500 |
commit | e479e8fd48952ae9fdedfb4c7ae57fc722cc15e2 (patch) | |
tree | 5c20cbf438c62427d1265484f1073607987aac0c /src/sys/timerfd.rs | |
parent | 2a8b438860ed37d515ed2cf854a9cd7cfaef35d5 (diff) | |
download | nix-e479e8fd48952ae9fdedfb4c7ae57fc722cc15e2.zip |
Remove MSRV-related workaround for doc aliases
Diffstat (limited to 'src/sys/timerfd.rs')
-rw-r--r-- | src/sys/timerfd.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/timerfd.rs b/src/sys/timerfd.rs index 42860658..b57d33c3 100644 --- a/src/sys/timerfd.rs +++ b/src/sys/timerfd.rs @@ -92,7 +92,7 @@ impl TimerFd { /// Creates a new timer based on the clock defined by `clockid`. The /// underlying fd can be assigned specific flags with `flags` (CLOEXEC, /// NONBLOCK). The underlying fd will be closed on drop. - #[cfg_attr(has_doc_alias, doc(alias("timerfd_create")))] + #[doc(alias("timerfd_create"))] pub fn new(clockid: ClockId, flags: TimerFlags) -> Result<Self> { Errno::result(unsafe { libc::timerfd_create(clockid as i32, flags.bits()) }) .map(|fd| Self { fd }) @@ -134,7 +134,7 @@ impl TimerFd { /// /// Note: Setting a one shot alarm with a 0s TimeSpec disables the alarm /// altogether. - #[cfg_attr(has_doc_alias, doc(alias("timerfd_settime")))] + #[doc(alias("timerfd_settime"))] pub fn set(&self, expiration: Expiration, flags: TimerSetTimeFlags) -> Result<()> { let timerspec: TimerSpec = expiration.into(); Errno::result(unsafe { @@ -149,7 +149,7 @@ impl TimerFd { } /// Get the parameters for the alarm currently set, if any. - #[cfg_attr(has_doc_alias, doc(alias("timerfd_gettime")))] + #[doc(alias("timerfd_gettime"))] pub fn get(&self) -> Result<Option<Expiration>> { let mut timerspec = TimerSpec::none(); Errno::result(unsafe { libc::timerfd_gettime(self.fd, timerspec.as_mut()) }).map(|_| { @@ -166,7 +166,7 @@ impl TimerFd { } /// Remove the alarm if any is set. - #[cfg_attr(has_doc_alias, doc(alias("timerfd_settime")))] + #[doc(alias("timerfd_settime"))] pub fn unset(&self) -> Result<()> { Errno::result(unsafe { libc::timerfd_settime( |