Skip to content

Commit 80f9618

Browse files
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]>
2 parents c9672a0 + 50d18eb commit 80f9618

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/ide_db/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ edition = "2018"
99
[lib]
1010
doctest = false
1111

12-
[features]
13-
wasm = []
14-
1512
[dependencies]
1613
log = "0.4.8"
1714
rayon = "1.5.0"

crates/ide_db/src/apply_change.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl RootDatabase {
6767
}
6868

6969
pub fn collect_garbage(&mut self) {
70-
if cfg!(feature = "wasm") {
70+
if cfg!(target_arch = "wasm32") {
7171
return;
7272
}
7373

0 commit comments

Comments
 (0)