mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
Fix warning: variable does not need to be mutable (#309)
This commit is contained in:
@@ -254,7 +254,7 @@ fn drop_threadpool_drops_futures() {
|
|||||||
let a = num_inc.clone();
|
let a = num_inc.clone();
|
||||||
let b = num_dec.clone();
|
let b = num_dec.clone();
|
||||||
|
|
||||||
let mut pool = Builder::new()
|
let pool = Builder::new()
|
||||||
.around_worker(move |w, _| {
|
.around_worker(move |w, _| {
|
||||||
a.fetch_add(1, Relaxed);
|
a.fetch_add(1, Relaxed);
|
||||||
w.run();
|
w.run();
|
||||||
|
|||||||
Reference in New Issue
Block a user