Skip to content

Commit 8aff76a

Browse files
committed
virtio-queue: fix clippy::needless-lifetimes lint
Remove explicitly named lifetimes that can be elided by the compiler to silence clippy lint. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
1 parent 35e84ab commit 8aff76a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

virtio-queue/src/descriptor_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl<'a, B: BitmapSlice> Reader<'a, B> {
232232
}
233233
}
234234

235-
impl<'a, B: BitmapSlice> io::Read for Reader<'a, B> {
235+
impl<B: BitmapSlice> io::Read for Reader<'_, B> {
236236
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
237237
self.buffer.consume(buf.len(), |bufs| {
238238
let mut rem = buf;
@@ -333,7 +333,7 @@ impl<'a, B: BitmapSlice> Writer<'a, B> {
333333
}
334334
}
335335

336-
impl<'a, B: BitmapSlice> io::Write for Writer<'a, B> {
336+
impl<B: BitmapSlice> io::Write for Writer<'_, B> {
337337
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
338338
self.buffer.consume(buf.len(), |bufs| {
339339
let mut rem = buf;

virtio-queue/src/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ where
730730
}
731731
}
732732

733-
impl<'b, M> Iterator for AvailIter<'b, M>
733+
impl<M> Iterator for AvailIter<'_, M>
734734
where
735735
M: Clone + Deref,
736736
M::Target: GuestMemory,

0 commit comments

Comments
 (0)