mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue