From 9a60751a901f568bdeb154c4115235d4f3a0f8b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 20 Mar 2026 21:54:29 +0800 Subject: Apply clippy suggestions and improve code quality --- rust-analyzer.toml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'rust-analyzer.toml') 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" -- cgit