Skip to content

Commit eb373bb

Browse files
committed
Fix test code in jamallocator
With the update of rand to 0.7, the test code of jemallocator needed to be fixed, but the fix was missing in the commit. This commit adds it.
1 parent dc419f1 commit eb373bb

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)