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 <jonasschievink@gmail.com>
This commit is contained in:
commit
80f9618f37
@ -9,9 +9,6 @@ edition = "2018"
|
||||
[lib]
|
||||
doctest = false
|
||||
|
||||
[features]
|
||||
wasm = []
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.8"
|
||||
rayon = "1.5.0"
|
||||
|
@ -67,7 +67,7 @@ impl RootDatabase {
|
||||
}
|
||||
|
||||
pub fn collect_garbage(&mut self) {
|
||||
if cfg!(feature = "wasm") {
|
||||
if cfg!(target_arch = "wasm32") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user