test: fix all clippy lints in tests (#2573)

This commit is contained in:
Mikail Bagishov
2020-05-31 14:49:22 +02:00
committed by GitHub
parent db0d6d75b3
commit 9264b837d8
7 changed files with 8 additions and 4 deletions
+1
View File
@@ -1,3 +1,4 @@
#![allow(clippy::blacklisted_name)]
use tokio::sync::oneshot;
use tokio_test::{assert_pending, assert_ready, task};
+1
View File
@@ -1,3 +1,4 @@
#![allow(clippy::blacklisted_name)]
use tokio::sync::{mpsc, oneshot};
use tokio::task;
use tokio_test::{assert_ok, assert_pending, assert_ready};
+1
View File
@@ -1,3 +1,4 @@
#![allow(clippy::blacklisted_name)]
use tokio::sync::oneshot;
use tokio_test::{assert_pending, assert_ready, task};
+1 -1
View File
@@ -36,7 +36,7 @@ fn straight_execution() {
fn readiness() {
let l = Arc::new(Mutex::new(100));
let mut t1 = spawn(l.clone().lock_owned());
let mut t2 = spawn(l.clone().lock_owned());
let mut t2 = spawn(l.lock_owned());
let g = assert_ready!(t1.poll());
+1
View File
@@ -1,3 +1,4 @@
#![allow(clippy::blacklisted_name)]
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]