Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/expand_macro.rs')
-rw-r--r--crates/ide/src/expand_macro.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/expand_macro.rs b/crates/ide/src/expand_macro.rs
index c93d0561a8..e4061016e6 100644
--- a/crates/ide/src/expand_macro.rs
+++ b/crates/ide/src/expand_macro.rs
@@ -141,7 +141,7 @@ fn format(db: &RootDatabase, kind: SyntaxKind, file_id: FileId, expanded: Syntax
_format(db, kind, file_id, &expansion).unwrap_or(expansion)
}
-#[cfg(test)]
+#[cfg(any(test, target_arch = "wasm32", target_os = "emscripten"))]
fn _format(
_db: &RootDatabase,
_kind: SyntaxKind,
@@ -151,7 +151,7 @@ fn _format(
None
}
-#[cfg(not(test))]
+#[cfg(not(any(test, target_arch = "wasm32", target_os = "emscripten")))]
fn _format(
db: &RootDatabase,
kind: SyntaxKind,