Fix nightly rustc warnings mismatched_lifetime_syntaxes

This commit is contained in:
Gergő Sályi 2025-06-15 21:12:32 +02:00
parent 505e279ce1
commit a7f456863c
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ impl Waker {
}
impl AsFd for Waker {
fn as_fd(&self) -> BorrowedFd {
fn as_fd(&self) -> BorrowedFd<'_> {
match self {
Waker::Eventfd { fd } => fd.as_fd(),
Waker::Pipe { read_half, .. } => read_half.as_fd(),

View file

@ -93,7 +93,7 @@ impl Drop for SignalPipe {
}
impl AsFd for SignalPipe {
fn as_fd(&self) -> BorrowedFd {
fn as_fd(&self) -> BorrowedFd<'_> {
self.read_half.as_fd()
}
}