aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/change.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-02 17:57:40 +0000
committerGitHub <[email protected]>2020-02-02 17:57:40 +0000
commitd06e02dd13e7cf10d53203620592aa0e85d808c0 (patch)
tree04241d931e7d2f57799a4ff28a11f020090def74 /crates/ra_ide/src/change.rs
parent856e4ba126ae776753f38c00593c02c4f43be510 (diff)
parent24ad1cce2c3cf2c0ce8288fc02c4c55529598990 (diff)
Merge #2985
2985: Avoid premature pessimization r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/change.rs')
-rw-r--r--crates/ra_ide/src/change.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/change.rs b/crates/ra_ide/src/change.rs
index 45a58690b..18dad2ea3 100644
--- a/crates/ra_ide/src/change.rs
+++ b/crates/ra_ide/src/change.rs
@@ -145,6 +145,8 @@ impl LibraryData {
145 root_id: SourceRootId, 145 root_id: SourceRootId,
146 files: Vec<(FileId, RelativePathBuf, Arc<String>)>, 146 files: Vec<(FileId, RelativePathBuf, Arc<String>)>,
147 ) -> LibraryData { 147 ) -> LibraryData {
148 let _p = profile("LibraryData::prepare");
149
148 #[cfg(not(feature = "wasm"))] 150 #[cfg(not(feature = "wasm"))]
149 let iter = files.par_iter(); 151 let iter = files.par_iter();
150 #[cfg(feature = "wasm")] 152 #[cfg(feature = "wasm")]