From c9f5bc29158a6f3a786e9d67df8da31524e8a9c3 Mon Sep 17 00:00:00 2001 From: mental Date: Wed, 2 Sep 2020 20:37:13 +0100 Subject: util: add `const fn` support for internal `LinkedList`. (#2805) --- tokio/src/task/local.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tokio/src/task') 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>>, + owned: LinkedList>, > as Link>::Target>, /// Local run queue sender and receiver. queue: VecDeque>>, -- cgit v1.2.3