aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-16 17:50:35 +0000
committerGitHub <[email protected]>2021-02-16 17:50:35 +0000
commit80f9618f3775d22fddbfa6fac041aed6519eca4e (patch)
treee74cc20a31567d0b877327fdafb945f76a6ead1b /crates
parentc9672a0539a59b626619724092077f57c70e6ffe (diff)
parent50d18eb0a61ef4692935e8dc35f863190c442d93 (diff)
Merge #7697
7697: Use `cfg(target_arch)` instead of a Cargo feature r=jonas-schievink a=jonas-schievink Not that WASM works right now anyways... bors r+ Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ide_db/Cargo.toml3
-rw-r--r--crates/ide_db/src/apply_change.rs2
2 files changed, 1 insertions, 4 deletions
diff --git a/crates/ide_db/Cargo.toml b/crates/ide_db/Cargo.toml
index d3d3dc688..d4612a75e 100644
--- a/crates/ide_db/Cargo.toml
+++ b/crates/ide_db/Cargo.toml
@@ -9,9 +9,6 @@ edition = "2018"
9[lib] 9[lib]
10doctest = false 10doctest = false
11 11
12[features]
13wasm = []
14
15[dependencies] 12[dependencies]
16log = "0.4.8" 13log = "0.4.8"
17rayon = "1.5.0" 14rayon = "1.5.0"
diff --git a/crates/ide_db/src/apply_change.rs b/crates/ide_db/src/apply_change.rs
index 9d9b6de7a..23974cff8 100644
--- a/crates/ide_db/src/apply_change.rs
+++ b/crates/ide_db/src/apply_change.rs
@@ -67,7 +67,7 @@ impl RootDatabase {
67 } 67 }
68 68
69 pub fn collect_garbage(&mut self) { 69 pub fn collect_garbage(&mut self) {
70 if cfg!(feature = "wasm") { 70 if cfg!(target_arch = "wasm32") {
71 return; 71 return;
72 } 72 }
73 73