Skip to content

Commit b56d9e9

Browse files
asomersSteveLauC
authored andcommitted
fixup to Clippy cleanup: mismatched_lifetime_syntaxes
1 parent d7e3c1c commit b56d9e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/mqueue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn mq_remove_nonblock(mqd: &MqdT) -> Result<MqAttr> {
315315
#[cfg(any(target_os = "linux", target_os = "netbsd", target_os = "dragonfly"))]
316316
impl AsFd for MqdT {
317317
/// Borrow the underlying message queue descriptor.
318-
fn as_fd(&self) -> BorrowedFd {
318+
fn as_fd(&self) -> BorrowedFd<'_> {
319319
// SAFETY: [MqdT] will only contain a valid fd by construction.
320320
unsafe { BorrowedFd::borrow_raw(self.0) }
321321
}

src/sys/fanotify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl FanotifyEvent {
229229
/// The file descriptor of the event. If the value is `None` when reading
230230
/// from the fanotify group, this event is to notify that a group queue
231231
/// overflow occured.
232-
pub fn fd(&self) -> Option<BorrowedFd> {
232+
pub fn fd(&self) -> Option<BorrowedFd<'_>> {
233233
if self.0.fd == libc::FAN_NOFD {
234234
None
235235
} else {
@@ -443,4 +443,4 @@ impl Fanotify {
443443
fd
444444
}
445445
}
446-
}
446+
}

src/sys/signalfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl SignalFd {
146146
}
147147

148148
impl AsFd for SignalFd {
149-
fn as_fd(&self) -> BorrowedFd {
149+
fn as_fd(&self) -> BorrowedFd<'_> {
150150
self.0.as_fd()
151151
}
152152
}

0 commit comments

Comments
 (0)