chore: minor fixes (#2121)

* One more clippy fix, remove special instructions from CI

* Fix Collect description
This commit is contained in:
Artem Vorotnikov
2020-01-16 10:29:02 -05:00
committed by Lucio Franco
parent bd8971cd95
commit 476bf0084a
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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>
+1
View File
@@ -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.