aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/cli/analysis_stats.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cli/analysis_stats.rs b/crates/rust-analyzer/src/cli/analysis_stats.rs
index 6b7c08971..66d201ba6 100644
--- a/crates/rust-analyzer/src/cli/analysis_stats.rs
+++ b/crates/rust-analyzer/src/cli/analysis_stats.rs
@@ -318,6 +318,6 @@ pub fn analysis_stats(
318fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) { 318fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) {
319 for i in (1..slice.len()).rev() { 319 for i in (1..slice.len()).rev() {
320 let idx = rng.rand_range(0..i as u32) as usize; 320 let idx = rng.rand_range(0..i as u32) as usize;
321 slice.swap(idx, i - 1) 321 slice.swap(idx, i)
322 } 322 }
323} 323}