Skip to content

Commit 00c66f0

Browse files
committed
fix(clippy): run clippy --fix to fix new lints
Some new lints are firing due to an update to the toolchain, fix them. Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
1 parent c7828bf commit 00c66f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl VsockListener {
184184
}
185185

186186
/// An iterator over the connections being received on this listener.
187-
pub fn incoming(&self) -> Incoming {
187+
pub fn incoming(&self) -> Incoming<'_> {
188188
Incoming { listener: self }
189189
}
190190

@@ -216,7 +216,7 @@ impl AsRawFd for VsockListener {
216216
}
217217

218218
impl AsFd for VsockListener {
219-
fn as_fd(&self) -> BorrowedFd {
219+
fn as_fd(&self) -> BorrowedFd<'_> {
220220
self.socket.as_fd()
221221
}
222222
}
@@ -515,7 +515,7 @@ impl AsRawFd for VsockStream {
515515
}
516516

517517
impl AsFd for VsockStream {
518-
fn as_fd(&self) -> BorrowedFd {
518+
fn as_fd(&self) -> BorrowedFd<'_> {
519519
self.socket.as_fd()
520520
}
521521
}

0 commit comments

Comments
 (0)