diff --git a/src/tools/rust-analyzer/editors/code/src/debug.ts b/src/tools/rust-analyzer/editors/code/src/debug.ts index 3de8cb9c29202..4b96e4d5c8ef0 100644 --- a/src/tools/rust-analyzer/editors/code/src/debug.ts +++ b/src/tools/rust-analyzer/editors/code/src/debug.ts @@ -194,9 +194,10 @@ function getCCppDebugConfig( args: runnable.args.executableArgs, cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".", sourceFileMap, - environment: Object.entries(env).map((entry) => { - return { name: entry[0], value: entry[1] }; - }), + environment: Object.entries(env).map((entry) => ({ + name: entry[0], + value: entry[1], + })), // See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941 osx: { MIMode: "lldb",