summaryrefslogtreecommitdiffstats
path: root/tokio/src/task
diff options
context:
space:
mode:
authormental <m3nta1@yahoo.com>2020-09-02 20:37:13 +0100
committerGitHub <noreply@github.com>2020-09-02 12:37:13 -0700
commitc9f5bc29158a6f3a786e9d67df8da31524e8a9c3 (patch)
tree5a5036435833cf80b2bd81165e89a5c57795e9cc /tokio/src/task
parent5cdb6f8fd6be35f971d8ef7ea8984f4d01965620 (diff)
util: add `const fn` support for internal `LinkedList`. (#2805)
Diffstat (limited to 'tokio/src/task')
-rw-r--r--tokio/src/task/local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs
index a56453df..1d7b99d5 100644
--- a/tokio/src/task/local.rs
+++ b/tokio/src/task/local.rs
@@ -1,7 +1,7 @@
//! Runs `!Send` futures on the current thread.
use crate::runtime::task::{self, JoinHandle, Task};
use crate::sync::AtomicWaker;
-use crate::util::linked_list::LinkedList;
+use crate::util::linked_list::{Link, LinkedList};
use std::cell::{Cell, RefCell};
use std::collections::VecDeque;
@@ -132,7 +132,7 @@ struct Context {
struct Tasks {
/// Collection of all active tasks spawned onto this executor.
- owned: LinkedList<Task<Arc<Shared>>>,
+ owned: LinkedList<Task<Arc<Shared>>, <Task<Arc<Shared>> as Link>::Target>,
/// Local run queue sender and receiver.
queue: VecDeque<task::Notified<Arc<Shared>>>,