Skip to content

Commit 780194b

Browse files
authored
Merge pull request #10 from statiolake/update-rand
Fix test code in jamallocator
2 parents dc419f1 + eb373bb commit 780194b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_jemallocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn do_allocate_heap() -> UnitResult {
2525

2626
let mut rng = SmallRng::from_rng(thread_rng())?;
2727

28-
let v = rng
28+
let v = (&mut rng)
2929
.sample_iter(&rand::distributions::Standard)
3030
.take(SIZE)
3131
.collect::<Vec<usize>>();

0 commit comments

Comments
 (0)