Fix nightly rustc warnings mismatched_lifetime_syntaxes
This commit is contained in:
parent
505e279ce1
commit
a7f456863c
2 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue