From 20ef28655354ae729a4af2098426a413e3f4d769 Mon Sep 17 00:00:00 2001 From: mental Date: Sat, 12 Sep 2020 10:55:03 +0100 Subject: sync: add const-constructors for some sync primitives (#2790) Co-authored-by: Mikail Bagishov Co-authored-by: Eliza Weisman Co-authored-by: Alice Ryhl --- tokio/src/util/linked_list.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'tokio/src/util') 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 Sync for Pointers {} impl LinkedList { /// 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 { LinkedList { head: None, -- cgit v1.2.3