Skip to content

Commit

Permalink
clippy,nits: remove needless borrow
Browse files Browse the repository at this point in the history
The borrow will be immediately dereferenced by the compiler and is therefore
unnecessary.

Signed-off-by: Mimoja <git@mimoja.de>
  • Loading branch information
Mimoja committed Jun 24, 2024
1 parent 5f1a173 commit 634d08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub mod tests {
];

let mut rng = rand::rngs::StdRng::seed_from_u64(seed);
let event_type_dist = WeightedIndex::new(&[10, 10, 1])?;
let event_type_dist = WeightedIndex::new([10, 10, 1])?;
let window_properties_dist = WeightedIndex::new(window_properties.iter().map(|e| e.0))?;
let app_id_dist = rand::distributions::Uniform::from(0..100);
let data = (0..eles).map(|_| match event_type_dist.sample(&mut rng) {
Expand Down

0 comments on commit 634d08a

Please sign in to comment.