summaryrefslogtreecommitdiffstats
path: root/tokio/tests/sync_mutex_owned.rs
diff options
context:
space:
mode:
authorMikail Bagishov <bagishov.mikail@yandex.ru>2020-05-31 15:49:22 +0300
committerGitHub <noreply@github.com>2020-05-31 14:49:22 +0200
commit9264b837d897dcdf974703a6739132b995e669bc (patch)
tree3fcc5646719a085b5a61f93482ec80c169316014 /tokio/tests/sync_mutex_owned.rs
parentdb0d6d75b3b65812837c8561269e55eab00a74dd (diff)
test: fix all clippy lints in tests (#2573)
Diffstat (limited to 'tokio/tests/sync_mutex_owned.rs')
-rw-r--r--tokio/tests/sync_mutex_owned.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/sync_mutex_owned.rs b/tokio/tests/sync_mutex_owned.rs
index eef966fd..394a6708 100644
--- a/tokio/tests/sync_mutex_owned.rs
+++ b/tokio/tests/sync_mutex_owned.rs
@@ -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());