mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Disable rustfmt for expand_macro on wasm platforms
This commit is contained in:
parent
895a16265c
commit
3de9a42810
2 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue