mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
chore: minor fixes (#2121)
* One more clippy fix, remove special instructions from CI * Fix Collect description
This commit is contained in:
committed by
Lucio Franco
parent
bd8971cd95
commit
476bf0084a
+1
-1
@@ -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
|
||||
|
||||
@@ -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<T, U>
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user