From ded3611f2bcfd30828b3f83a768b5266cd210685 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Tue, 6 Oct 2020 13:49:27 -0700 Subject: [PATCH] chore: fix unused warning for LinkedList::last on Windows --- tokio/src/util/linked_list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/util/linked_list.rs b/tokio/src/util/linked_list.rs index b2f8dfc8a18..6aa227c281f 100644 --- a/tokio/src/util/linked_list.rs +++ b/tokio/src/util/linked_list.rs @@ -184,9 +184,9 @@ impl fmt::Debug for LinkedList { #[cfg(any( feature = "fs", - feature = "sync", + all(unix, feature = "process"), feature = "signal", - feature = "process" + feature = "sync", ))] impl LinkedList { pub(crate) fn last(&self) -> Option<&L::Target> {