File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ pub fn mq_remove_nonblock(mqd: &MqdT) -> Result<MqAttr> {
315
315
#[ cfg( any( target_os = "linux" , target_os = "netbsd" , target_os = "dragonfly" ) ) ]
316
316
impl AsFd for MqdT {
317
317
/// Borrow the underlying message queue descriptor.
318
- fn as_fd ( & self ) -> BorrowedFd {
318
+ fn as_fd ( & self ) -> BorrowedFd < ' _ > {
319
319
// SAFETY: [MqdT] will only contain a valid fd by construction.
320
320
unsafe { BorrowedFd :: borrow_raw ( self . 0 ) }
321
321
}
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ impl FanotifyEvent {
229
229
/// The file descriptor of the event. If the value is `None` when reading
230
230
/// from the fanotify group, this event is to notify that a group queue
231
231
/// overflow occured.
232
- pub fn fd ( & self ) -> Option < BorrowedFd > {
232
+ pub fn fd ( & self ) -> Option < BorrowedFd < ' _ > > {
233
233
if self . 0 . fd == libc:: FAN_NOFD {
234
234
None
235
235
} else {
@@ -443,4 +443,4 @@ impl Fanotify {
443
443
fd
444
444
}
445
445
}
446
- }
446
+ }
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ impl SignalFd {
146
146
}
147
147
148
148
impl AsFd for SignalFd {
149
- fn as_fd ( & self ) -> BorrowedFd {
149
+ fn as_fd ( & self ) -> BorrowedFd < ' _ > {
150
150
self . 0 . as_fd ( )
151
151
}
152
152
}
You can’t perform that action at this time.
0 commit comments