diff options
author | mental <m3nta1@yahoo.com> | 2020-09-02 20:37:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 12:37:13 -0700 |
commit | c9f5bc29158a6f3a786e9d67df8da31524e8a9c3 (patch) | |
tree | 5a5036435833cf80b2bd81165e89a5c57795e9cc /tokio/src/task/local.rs | |
parent | 5cdb6f8fd6be35f971d8ef7ea8984f4d01965620 (diff) |
util: add `const fn` support for internal `LinkedList`. (#2805)
Diffstat (limited to 'tokio/src/task/local.rs')
-rw-r--r-- | tokio/src/task/local.rs | 4 |
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>>>, |