Skip to content

Commit 680b236

Browse files
taiki-eNemo157
authored andcommitted
Remove #[allow(clippy::needless_lifetimes)]
1 parent 1ee408b commit 680b236

File tree

9 files changed

+0
-9
lines changed

9 files changed

+0
-9
lines changed

futures-util/src/future/maybe_done.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl<Fut: Future> MaybeDone<Fut> {
5050
/// future has been completed and [`take_output`](MaybeDone::take_output)
5151
/// has not yet been called.
5252
#[inline]
53-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
5453
pub fn output_mut<'a>(self: Pin<&'a mut Self>) -> Option<&'a mut Fut::Output> {
5554
unsafe {
5655
let this = Pin::get_unchecked_mut(self);

futures-util/src/sink/map_err.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ impl<Si, F> SinkMapErr<Si, F> {
3333
}
3434

3535
/// Get a pinned reference to the inner sink.
36-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
3736
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut Si> {
3837
unsafe { Pin::map_unchecked_mut(self, |x| &mut x.sink) }
3938
}

futures-util/src/sink/with.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ enum State<Fut, T> {
5858
}
5959

6060
impl<Fut, T> State<Fut, T> {
61-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
6261
#[allow(clippy::wrong_self_convention)]
6362
fn as_pin_mut<'a>(
6463
self: Pin<&'a mut Self>,

futures-util/src/sink/with_flat_map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ where
5959
}
6060

6161
/// Get a pinned mutable reference to the inner sink.
62-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
6362
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut Si> {
6463
unsafe { Pin::map_unchecked_mut(self, |x| &mut x.sink) }
6564
}

futures-util/src/stream/buffer_unordered.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ where
8080
///
8181
/// Note that care must be taken to avoid tampering with the state of the
8282
/// stream which may otherwise confuse this combinator.
83-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
8483
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut St> {
8584
unsafe { Pin::map_unchecked_mut(self, |x| x.get_mut()) }
8685
}

futures-util/src/stream/buffered.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ where
7575
///
7676
/// Note that care must be taken to avoid tampering with the state of the
7777
/// stream which may otherwise confuse this combinator.
78-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
7978
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut St> {
8079
unsafe { Pin::map_unchecked_mut(self, |x| x.get_mut()) }
8180
}

futures-util/src/stream/fuse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ impl<St: Stream> Fuse<St> {
5151
///
5252
/// Note that care must be taken to avoid tampering with the state of the
5353
/// stream which may otherwise confuse this combinator.
54-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
5554
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut St> {
5655
unsafe { Pin::map_unchecked_mut(self, |x| x.get_mut()) }
5756
}

futures-util/src/stream/futures_unordered/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ impl<Fut> FuturesUnordered<Fut> {
195195
}
196196

197197
/// Returns an iterator that allows modifying each future in the set.
198-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
199198
pub fn iter_pin_mut<'a>(self: Pin<&'a mut Self>) -> IterPinMut<'a, Fut> {
200199
IterPinMut {
201200
task: self.head_all,

futures-util/src/try_future/flatten_sink.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ where
2525
FlattenSink(Waiting(future))
2626
}
2727

28-
#[allow(clippy::needless_lifetimes)] // https://github.com/rust-lang/rust/issues/52675
2928
fn project_pin<'a>(
3029
self: Pin<&'a mut Self>
3130
) -> State<Pin<&'a mut Fut>, Pin<&'a mut Si>> {

0 commit comments

Comments
 (0)