Skip to content

Commit 8aed9b8

Browse files
fix(clippy): latest warnings
1 parent ff09886 commit 8aed9b8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub struct DualstackMeasureManyStream<'a, I: Iterator<Item = IpAddr>> {
114114
v6: MeasureManyStream<'a, Ipv6Addr, FilterIpAddr<I, Ipv6Addr>>,
115115
}
116116

117-
impl<'a, I: Iterator<Item = IpAddr>> DualstackMeasureManyStream<'a, I> {
117+
impl<I: Iterator<Item = IpAddr>> DualstackMeasureManyStream<'_, I> {
118118
pub fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<(IpAddr, Duration)> {
119119
if let Poll::Ready((v4, rtt)) = self.v4.poll_next_unpin(cx) {
120120
return Poll::Ready((IpAddr::V4(v4), rtt));
@@ -129,7 +129,7 @@ impl<'a, I: Iterator<Item = IpAddr>> DualstackMeasureManyStream<'a, I> {
129129
}
130130

131131
#[cfg(feature = "stream")]
132-
impl<'a, I: Iterator<Item = IpAddr> + Unpin> Stream for DualstackMeasureManyStream<'a, I> {
132+
impl<I: Iterator<Item = IpAddr> + Unpin> Stream for DualstackMeasureManyStream<'_, I> {
133133
type Item = (IpAddr, Duration);
134134

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

src/pinger.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub struct MeasureManyStream<'a, V: IpVersion, I: Iterator<Item = V>> {
279279
sequence_number: u16,
280280
}
281281

282-
impl<'a, V: IpVersion, I: Iterator<Item = V>> MeasureManyStream<'a, V, I> {
282+
impl<V: IpVersion, I: Iterator<Item = V>> MeasureManyStream<'_, V, I> {
283283
pub fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<(V, Duration)> {
284284
// Try to see if another `MeasureManyStream` got it
285285
if let Poll::Ready(Some((addr, rtt))) = self.poll_next_from_different_round(cx) {
@@ -353,7 +353,7 @@ impl<'a, V: IpVersion, I: Iterator<Item = V>> MeasureManyStream<'a, V, I> {
353353
}
354354

355355
#[cfg(feature = "stream")]
356-
impl<'a, V: IpVersion, I: Iterator<Item = V> + Unpin> Stream for MeasureManyStream<'a, V, I> {
356+
impl<V: IpVersion, I: Iterator<Item = V> + Unpin> Stream for MeasureManyStream<'_, V, I> {
357357
type Item = (V, Duration);
358358

359359
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
@@ -362,7 +362,7 @@ impl<'a, V: IpVersion, I: Iterator<Item = V> + Unpin> Stream for MeasureManyStre
362362
}
363363
}
364364

365-
impl<'a, V: IpVersion, I: Iterator<Item = V>> Drop for MeasureManyStream<'a, V, I> {
365+
impl<V: IpVersion, I: Iterator<Item = V>> Drop for MeasureManyStream<'_, V, I> {
366366
fn drop(&mut self) {
367367
let _ = self
368368
.pinger

src/raw_pinger/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub struct SendFuture<'a, V: IpVersion> {
101101
packet: &'a EchoRequestPacket<V>,
102102
}
103103

104-
impl<'a, V: IpVersion> Future for SendFuture<'a, V> {
104+
impl<V: IpVersion> Future for SendFuture<'_, V> {
105105
type Output = io::Result<()>;
106106

107107
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
@@ -115,7 +115,7 @@ pub struct RecvFuture<'a, V: IpVersion> {
115115
buf: Vec<u8>,
116116
}
117117

118-
impl<'a, V: IpVersion> Future for RecvFuture<'a, V> {
118+
impl<V: IpVersion> Future for RecvFuture<'_, V> {
119119
type Output = io::Result<EchoReplyPacket<'static, V>>;
120120

121121
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {

0 commit comments

Comments
 (0)