Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Apr 5, 2023
1 parent 7595482 commit 9a3a61d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/utils/countdown_futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn futures_vec(len: usize) -> Vec<CountdownFuture> {
futures
}

#[allow(unused)]
pub fn futures_array<const N: usize>() -> [CountdownFuture; N] {
let wakers = Rc::new(RefCell::new(BinaryHeap::new()));
let completed = Rc::new(Cell::new(0));
Expand All @@ -27,6 +28,7 @@ pub fn futures_array<const N: usize>() -> [CountdownFuture; N] {
futures
}

#[allow(unused)]
pub fn futures_tuple() -> (
CountdownFuture,
CountdownFuture,
Expand Down
2 changes: 2 additions & 0 deletions benches/utils/countdown_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::task::{Context, Poll};

use super::{shuffle, PrioritizedWaker, State};

#[allow(unused)]
pub fn streams_vec(len: usize) -> Vec<CountdownStream> {
let wakers = Rc::new(RefCell::new(BinaryHeap::new()));
let completed = Rc::new(Cell::new(0));
Expand All @@ -27,6 +28,7 @@ pub fn streams_array<const N: usize>() -> [CountdownStream; N] {
streams
}

#[allow(unused)]
pub fn streams_tuple() -> (
CountdownStream,
CountdownStream,
Expand Down

0 comments on commit 9a3a61d

Please sign in to comment.