Skip to content

Commit

Permalink
chore: fix unused warning for LinkedList::last on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Oct 6, 2020
1 parent 412ed82 commit 8d1b772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tokio/src/util/linked_list.rs
Expand Up @@ -181,7 +181,11 @@ impl<L: Link> fmt::Debug for LinkedList<L, L::Target> {
}
}

#[cfg(any(feature = "sync", feature = "signal", feature = "process"))]
#[cfg(any(
all(unix, feature = "process"),
feature = "signal",
feature = "sync",
))]
impl<L: Link> LinkedList<L, L::Target> {
pub(crate) fn last(&self) -> Option<&L::Target> {
let tail = self.tail.as_ref()?;
Expand Down

0 comments on commit 8d1b772

Please sign in to comment.