Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Swen committed Jun 22, 2024
1 parent 221ddde commit 39b7480
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions merkle-tree/bounded-vec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,10 @@ mod test {
thread_rng, Rng,
};


use super::*;

use rand::distributions::uniform::{SampleRange, SampleUniform};



/// Generates a random value in the given range, excluding the values provided
/// in `exclude`.
fn gen_range_exclude<N, R, T>(rng: &mut N, range: R, exclude: &[T]) -> T
Expand All @@ -812,12 +810,11 @@ mod test {
}
}
}



#[test]
fn test_gen_range_exclude() {
let mut rng = thread_rng();

for n_excluded in 1..100 {
let excluded: Vec<u64> = (0..n_excluded).map(|_| rng.gen_range(0..100)).collect();

Expand Down

0 comments on commit 39b7480

Please sign in to comment.