summaryrefslogtreecommitdiffstats
path: root/tokio/tests/rt_basic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/rt_basic.rs')
-rw-r--r--tokio/tests/rt_basic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/tests/rt_basic.rs b/tokio/tests/rt_basic.rs
index 0885992d..3813c480 100644
--- a/tokio/tests/rt_basic.rs
+++ b/tokio/tests/rt_basic.rs
@@ -12,7 +12,7 @@ use std::time::Duration;
fn spawned_task_does_not_progress_without_block_on() {
let (tx, mut rx) = oneshot::channel();
- let mut rt = rt();
+ let rt = rt();
rt.spawn(async move {
assert_ok!(tx.send("hello"));
@@ -65,7 +65,7 @@ fn no_extra_poll() {
};
let npolls = Arc::clone(&rx.npolls);
- let mut rt = rt();
+ let rt = rt();
rt.spawn(async move { while rx.next().await.is_some() {} });
rt.block_on(async {
@@ -100,7 +100,7 @@ fn acquire_mutex_in_drop() {
let (tx1, rx1) = oneshot::channel();
let (tx2, rx2) = oneshot::channel();
- let mut rt = rt();
+ let rt = rt();
rt.spawn(async move {
let _ = rx2.await;