From 9a3a61dfda1570d2ccba01cc3e0949a817adeca7 Mon Sep 17 00:00:00 2001 From: Yosh Date: Wed, 5 Apr 2023 13:04:12 +0200 Subject: [PATCH] fix warnings --- benches/utils/countdown_futures.rs | 2 ++ benches/utils/countdown_streams.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/benches/utils/countdown_futures.rs b/benches/utils/countdown_futures.rs index fb8b88b..fcaca2f 100644 --- a/benches/utils/countdown_futures.rs +++ b/benches/utils/countdown_futures.rs @@ -18,6 +18,7 @@ pub fn futures_vec(len: usize) -> Vec { futures } +#[allow(unused)] pub fn futures_array() -> [CountdownFuture; N] { let wakers = Rc::new(RefCell::new(BinaryHeap::new())); let completed = Rc::new(Cell::new(0)); @@ -27,6 +28,7 @@ pub fn futures_array() -> [CountdownFuture; N] { futures } +#[allow(unused)] pub fn futures_tuple() -> ( CountdownFuture, CountdownFuture, diff --git a/benches/utils/countdown_streams.rs b/benches/utils/countdown_streams.rs index 25bec68..f090f36 100644 --- a/benches/utils/countdown_streams.rs +++ b/benches/utils/countdown_streams.rs @@ -8,6 +8,7 @@ use std::task::{Context, Poll}; use super::{shuffle, PrioritizedWaker, State}; +#[allow(unused)] pub fn streams_vec(len: usize) -> Vec { let wakers = Rc::new(RefCell::new(BinaryHeap::new())); let completed = Rc::new(Cell::new(0)); @@ -27,6 +28,7 @@ pub fn streams_array() -> [CountdownStream; N] { streams } +#[allow(unused)] pub fn streams_tuple() -> ( CountdownStream, CountdownStream,