Skip to content

Commit cd1f29a

Browse files
committed
Remove unnecessarily allowed lints
1 parent 934d237 commit cd1f29a

File tree

9 files changed

+0
-11
lines changed

9 files changed

+0
-11
lines changed

futures-channel/tests/mpsc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ fn stress_shared_bounded_hard() {
262262
t.join().unwrap();
263263
}
264264

265-
#[allow(clippy::same_item_push)]
266265
#[test]
267266
fn stress_receiver_multi_task_bounded_hard() {
268267
#[cfg(miri)]
@@ -411,7 +410,6 @@ async fn stress_poll_ready_sender(mut sender: mpsc::Sender<u32>, count: u32) {
411410
}
412411

413412
/// Tests that after `poll_ready` indicates capacity a channel can always send without waiting.
414-
#[allow(clippy::same_item_push)]
415413
#[test]
416414
fn stress_poll_ready() {
417415
#[cfg(miri)]

futures-task/src/future_obj.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub struct LocalFutureObj<'a, T> {
2525
impl<T> Unpin for LocalFutureObj<'_, T> {}
2626

2727
#[allow(single_use_lifetimes)]
28-
#[allow(clippy::transmute_ptr_to_ptr)]
2928
unsafe fn remove_future_lifetime<'a, T>(
3029
ptr: *mut (dyn Future<Output = T> + 'a),
3130
) -> *mut (dyn Future<Output = T> + 'static) {

futures-task/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
allow(dead_code, unused_assignments, unused_variables)
1212
)
1313
))]
14-
#![allow(clippy::non_send_fields_in_send_ty)]
1514

1615
#[cfg(feature = "alloc")]
1716
extern crate alloc;

futures-task/src/waker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ where
2828
// FIXME: panics on Arc::clone / refcount changes could wreak havoc on the
2929
// code here. We should guard against this by aborting.
3030

31-
#[allow(clippy::redundant_clone)] // The clone here isn't actually redundant.
3231
unsafe fn increase_refcount<T: ArcWake>(data: *const ()) {
3332
// Retain Arc, but don't touch refcount by wrapping in ManuallyDrop
3433
let arc = mem::ManuallyDrop::new(Arc::<T>::from_raw(data.cast::<T>()));

futures-util/src/compat/compat01as03.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ where
321321

322322
struct NotifyWaker(task03::Waker);
323323

324-
#[allow(missing_debug_implementations)] // false positive: this is private type
325324
#[derive(Clone)]
326325
struct WakerToHandle<'a>(&'a task03::Waker);
327326

futures-util/src/future/try_select.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ where
6363
A: TryFuture,
6464
B: TryFuture,
6565
{
66-
#[allow(clippy::type_complexity)]
6766
type Output = Result<Either<(A::Ok, B), (B::Ok, A)>, Either<(A::Error, B), (B::Error, A)>>;
6867

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

futures-util/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
)
1919
))]
2020
#![cfg_attr(docsrs, feature(doc_cfg))]
21-
#![allow(clippy::non_send_fields_in_send_ty)]
2221
#![allow(clippy::needless_borrow)] // https://github.com/rust-lang/futures-rs/pull/2558#issuecomment-1030745203
2322

2423
#[cfg(all(feature = "bilock", not(feature = "unstable")))]

futures-util/src/stream/try_stream/try_chunks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ impl<St: TryStream> TryChunks<St> {
4242
}
4343

4444
impl<St: TryStream> Stream for TryChunks<St> {
45-
#[allow(clippy::type_complexity)]
4645
type Item = Result<Vec<St::Ok>, TryChunksError<St::Ok, St::Error>>;
4746

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

futures/tests/async_await_macros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::collapsible_match)] // https://github.com/rust-lang/rust-clippy/issues/7591
2-
31
use futures::channel::{mpsc, oneshot};
42
use futures::executor::block_on;
53
use futures::future::{self, poll_fn, FutureExt};

0 commit comments

Comments
 (0)