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 <jonasschievink@gmail.com>
This commit is contained in:
bors[bot] 2021-02-16 17:50:35 +00:00 committed by GitHub
commit 80f9618f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -9,9 +9,6 @@ edition = "2018"
[lib]
doctest = false
[features]
wasm = []
[dependencies]
log = "0.4.8"
rayon = "1.5.0"

View File

@ -67,7 +67,7 @@ impl RootDatabase {
}
pub fn collect_garbage(&mut self) {
if cfg!(feature = "wasm") {
if cfg!(target_arch = "wasm32") {
return;
}