Skip to content

Commit 786caa0

Browse files
committed
fix: Update benchmark files for rand 0.9 API compatibility
After rebasing on PR #702, which updated rand from 0.10 to 0.9, the benchmarks needed API adjustments: - Use rand::Rng instead of rand::RngExt - Use gen_range() instead of random_range() This ensures benchmarks compile with the updated dependency. Signed-off-by: Henrik Ma Johansson <dahankzter@gmail.com>
1 parent 3dd5033 commit 786caa0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

glommio/benches/competing_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use glommio::{
55
io::{ImmutableFile, ImmutableFileBuilder},
66
Latency, LocalExecutorBuilder, Placement, Shares,
77
};
8-
use rand::RngExt;
8+
use rand::Rng;
99
use std::{
1010
cell::{Cell, RefCell},
1111
path::PathBuf,

glommio/benches/shared_channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use glommio::{channels::shared_channel, enclose, prelude::*};
2-
use rand::RngExt;
2+
use rand::Rng;
33
use std::{sync::mpsc::sync_channel, time::Instant};
44

55
fn test_spsc(capacity: usize) {

0 commit comments

Comments
 (0)