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/src/apply_change.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_db/src') 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