aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-04 21:05:17 +0100
committerAleksey Kladov <[email protected]>2019-07-04 21:09:09 +0100
commit1834bae5b86c54ed9dece26e82436919d59e6cb7 (patch)
tree92c8b984e874b67fa1831613464bbe356c1af3dd /crates/ra_prof/src
parent2b2cd829b0f95aef338227deb05ec7503dae9b6c (diff)
allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
Diffstat (limited to 'crates/ra_prof/src')
-rw-r--r--crates/ra_prof/src/lib.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs
index 6f7918745..919cc1b3c 100644
--- a/crates/ra_prof/src/lib.rs
+++ b/crates/ra_prof/src/lib.rs
@@ -2,18 +2,21 @@ mod memory_usage;
2 2
3use std::{ 3use std::{
4 cell::RefCell, 4 cell::RefCell,
5 time::{Duration, Instant}, 5 collections::HashSet,
6 mem,
7 io::{stderr, Write}, 6 io::{stderr, Write},
8 iter::repeat, 7 iter::repeat,
9 collections::HashSet, 8 mem,
10 sync::{RwLock, atomic::{AtomicBool, Ordering}}, 9 sync::{
10 atomic::{AtomicBool, Ordering},
11 RwLock,
12 },
13 time::{Duration, Instant},
11}; 14};
12 15
13use once_cell::sync::Lazy;
14use itertools::Itertools; 16use itertools::Itertools;
17use once_cell::sync::Lazy;
15 18
16pub use crate::memory_usage::{MemoryUsage, Bytes}; 19pub use crate::memory_usage::{Bytes, MemoryUsage};
17 20
18// We use jemalloc mainly to get heap usage statistics, actual performance 21// We use jemalloc mainly to get heap usage statistics, actual performance
19// difference is not measures. 22// difference is not measures.