Skip to content

Commit 4850608

Browse files
committed
Drop unnecessary lifetimes
1 parent b8ec2a5 commit 4850608

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sdtx/src/event.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ impl<'a, F: AsRawFd + Read> EventStream<'a, F> {
275275
}
276276
}
277277

278-
impl<'a, F: AsRawFd> Drop for EventStream<'a, F> {
278+
impl<F: AsRawFd> Drop for EventStream<'_, F> {
279279
fn drop(&mut self) {
280280
let _ = unsafe { uapi::dtx_events_disable(self.reader.get_ref().as_raw_fd()) };
281281
}
282282
}
283283

284-
impl<'a, F: AsRawFd + Read> EventStream<'a, F> {
284+
impl<F: AsRawFd + Read> EventStream<'_, F> {
285285
pub fn read_next_blocking(&mut self) -> std::io::Result<Event> {
286286
let mut buf_hdr = [0; std::mem::size_of::<uapi::EventHeader>()];
287287
let mut buf_data = SmallVec::<[u8; 32]>::new();
@@ -297,7 +297,7 @@ impl<'a, F: AsRawFd + Read> EventStream<'a, F> {
297297
}
298298
}
299299

300-
impl<'a, F: AsRawFd + Read> Iterator for EventStream<'a, F> {
300+
impl<F: AsRawFd + Read> Iterator for EventStream<'_, F> {
301301
type Item = std::io::Result<Event>;
302302

303303
fn next(&mut self) -> Option<Self::Item> {
@@ -321,13 +321,13 @@ impl<'a, F: AsRawFd + AsyncRead + Unpin> AsyncEventStream<'a, F> {
321321
}
322322
}
323323

324-
impl<'a, F: AsRawFd + AsyncRead + Unpin> Drop for AsyncEventStream<'a, F> {
324+
impl<F: AsRawFd + AsyncRead + Unpin> Drop for AsyncEventStream<'_, F> {
325325
fn drop(&mut self) {
326326
let _ = unsafe { uapi::dtx_events_disable(self.file.as_raw_fd()) };
327327
}
328328
}
329329

330-
impl<'a, F: AsRawFd + AsyncRead + Unpin> AsyncEventStream<'a, F> {
330+
impl<F: AsRawFd + AsyncRead + Unpin> AsyncEventStream<'_, F> {
331331
pub async fn read_next(&mut self) -> std::io::Result<Event> {
332332
const HEADER_LEN: usize = std::mem::size_of::<uapi::EventHeader>();
333333

@@ -353,7 +353,7 @@ impl<'a, F: AsRawFd + AsyncRead + Unpin> AsyncEventStream<'a, F> {
353353
}
354354
}
355355

356-
impl<'a, F: AsRawFd + AsyncRead + Unpin> Stream for AsyncEventStream<'a, F> {
356+
impl<F: AsRawFd + AsyncRead + Unpin> Stream for AsyncEventStream<'_, F> {
357357
type Item = std::io::Result<Event>;
358358

359359
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>> {

0 commit comments

Comments
 (0)