summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2020-06-07 20:38:02 +0900
committerGitHub <noreply@github.com>2020-06-07 20:38:02 +0900
commit4010335c84517571e9b2d13f66f7c72170493622 (patch)
treeb06be19d70869ce78455ede878ab56702de5a505 /tokio/src/runtime
parentbe4577e22f7d0e899501b67408b5befff5adda29 (diff)
chore: fix ci failure on master (#2593)
* Fix clippy warnings * Pin rustc version to 1.43.1 in macOS Refs: https://github.com/rust-lang/rust/issues/73030
Diffstat (limited to 'tokio/src/runtime')
-rw-r--r--tokio/src/runtime/thread_pool/worker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/runtime/thread_pool/worker.rs b/tokio/src/runtime/thread_pool/worker.rs
index 40cd69e7..0777857e 100644
--- a/tokio/src/runtime/thread_pool/worker.rs
+++ b/tokio/src/runtime/thread_pool/worker.rs
@@ -571,7 +571,7 @@ impl Core {
}
// Drain the queue
- while let Some(_) = self.next_local_task() {}
+ while self.next_local_task().is_some() {}
}
fn drain_pending_drop(&mut self, worker: &Worker) {
@@ -793,7 +793,7 @@ impl Shared {
}
// Drain the injection queue
- while let Some(_) = self.inject.pop() {}
+ while self.inject.pop().is_some() {}
}
fn ptr_eq(&self, other: &Shared) -> bool {