summaryrefslogtreecommitdiff
path: root/rust-analyzer.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-20 21:54:29 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-20 21:57:49 +0800
commit9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch)
tree65df323f6478bae51473a3d6471df39a596ce9c5 /rust-analyzer.toml
parenta9e5c086584d3e697188be7003f564e7e2137135 (diff)
Apply clippy suggestions and improve code quality
Diffstat (limited to 'rust-analyzer.toml')
-rw-r--r--rust-analyzer.toml25
1 files changed, 9 insertions, 16 deletions
diff --git a/rust-analyzer.toml b/rust-analyzer.toml
index 0754abc..1f677ad 100644
--- a/rust-analyzer.toml
+++ b/rust-analyzer.toml
@@ -1,20 +1,12 @@
-[package]
-proc-macro.enable = true
-
-[cargo]
-allFeatures = true
-loadOutDirsFromCheck = true
-runBuildScripts = true
-
[rust-analyzer]
-procMacro.enable = true
-procMacro.attributes.enable = true
+proc-macro.enable = true
+proc-macro.attributes.enable = true
diagnostics.disabled = ["unresolved-proc-macro"]
-inlayHints.typeHints = true
-inlayHints.parameterHints = true
-inlayHints.chainingHints = true
+inlay-hints.type-hints = true
+inlay-hints.parameter-hints = true
+inlay-hints.chaining-hints = true
completion.autoimport.enable = true
completion.postfix.enable = true
@@ -31,9 +23,10 @@ files.excludeDirs = [
"src/data/compile_info.rs"
]
-macroExpansion.mode = "hir"
-macroExpansion.maxDepth = 32
-macroExpansion.engines = { hir = true, tt = true }
+macro-expansion.mode = "hir"
+macro-expansion.max-depth = 32
+macro-expansion.engines.hir = true
+macro-expansion.engines.tt = true
workspace.symbol.search.scope = "workspace"