From 50d18eb0a61ef4692935e8dc35f863190c442d93 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 16 Feb 2021 18:50:06 +0100 Subject: Use `cfg(target_arch)` instead of a Cargo feature Not that WASM works right now anyways... --- crates/ide_db/Cargo.toml | 3 --- crates/ide_db/src/apply_change.rs | 2 +- 2 files changed, 1 insertion(+), 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" [lib] doctest = false -[features] -wasm = [] - [dependencies] log = "0.4.8" rayon = "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 { } pub fn collect_garbage(&mut self) { - if cfg!(feature = "wasm") { + if cfg!(target_arch = "wasm32") { return; } -- cgit v1.2.3