diff options
author | mental <m3nta1@yahoo.com> | 2020-09-12 10:55:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 11:55:03 +0200 |
commit | 20ef28655354ae729a4af2098426a413e3f4d769 (patch) | |
tree | 1122ae239c47b3553f4b50741a756e36de34a707 /tokio/src/util | |
parent | 2bc9a4815259c8ff4daa5e24f128ec826970d17f (diff) |
sync: add const-constructors for some sync primitives (#2790)
Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Diffstat (limited to 'tokio/src/util')
-rw-r--r-- | tokio/src/util/linked_list.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tokio/src/util/linked_list.rs b/tokio/src/util/linked_list.rs index e6d6c588..940d6af9 100644 --- a/tokio/src/util/linked_list.rs +++ b/tokio/src/util/linked_list.rs @@ -72,7 +72,6 @@ unsafe impl<T: Sync> Sync for Pointers<T> {} impl<L, T> LinkedList<L, T> { /// Creates an empty linked list. - #[allow(dead_code)] // NOTE: This will get removed with: https://github.com/tokio-rs/tokio/pull/2790 pub(crate) const fn new() -> LinkedList<L, T> { LinkedList { head: None, |