diff --git a/ci/azure-clippy.yml b/ci/azure-clippy.yml index 349cd5d63..58ab318f7 100644 --- a/ci/azure-clippy.yml +++ b/ci/azure-clippy.yml @@ -12,5 +12,5 @@ jobs: cargo clippy --version displayName: Install clippy - script: | - cargo clippy --all --all-features -- -A clippy::mutex-atomic -A clippy::needless-doctest-main + cargo clippy --all --all-features displayName: cargo clippy --all diff --git a/tokio/src/stream/collect.rs b/tokio/src/stream/collect.rs index e8a581474..f44c72b7b 100644 --- a/tokio/src/stream/collect.rs +++ b/tokio/src/stream/collect.rs @@ -9,7 +9,7 @@ use pin_project_lite::pin_project; // Do not export this struct until `FromStream` can be unsealed. pin_project! { - /// Stream returned by the [`collect`](super::StreamExt::collect) method. + /// Future returned by the [`collect`](super::StreamExt::collect) method. #[must_use = "streams do nothing unless polled"] #[derive(Debug)] pub struct Collect diff --git a/tokio/tests/stream_collect.rs b/tokio/tests/stream_collect.rs index a4bee0d17..70051e7f6 100644 --- a/tokio/tests/stream_collect.rs +++ b/tokio/tests/stream_collect.rs @@ -4,6 +4,7 @@ use tokio_test::{assert_pending, assert_ready, assert_ready_err, assert_ready_ok use bytes::{Bytes, BytesMut}; +#[allow(clippy::let_unit_value)] #[tokio::test] async fn empty_unit() { // Drains the stream.