aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-29 18:56:54 +0100
committerGitHub <[email protected]>2020-07-29 18:56:54 +0100
commit63de7bbb5b4cfb4797adb303ce2a48cf8ff2cff4 (patch)
tree4de0bef2ca0215da21322427062d1005cb0167e6 /crates
parentba585309ec9ba6102038cd16c3fff107dfc1f56c (diff)
Update crates/rust-analyzer/src/cli/analysis_stats.rs
Co-authored-by: LaurenČ›iu Nicola <[email protected]>
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}