Update crates/rust-analyzer/src/cli/analysis_stats.rs
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
parent
ba585309ec
commit
63de7bbb5b
@ -318,6 +318,6 @@ pub fn analysis_stats(
|
||||
fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) {
|
||||
for i in (1..slice.len()).rev() {
|
||||
let idx = rng.rand_range(0..i as u32) as usize;
|
||||
slice.swap(idx, i - 1)
|
||||
slice.swap(idx, i)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user