From f63cf2cbf05c3a1189682664a0ef889096e3cf43 Mon Sep 17 00:00:00 2001 From: Joseph Shearer Date: Fri, 4 Aug 2023 17:05:24 -0400 Subject: [PATCH] Fix `rust-analyzer` adding spaces to `use` statements --- .vscode/settings.json | 3 ++- rustfmt.toml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/.vscode/settings.json b/.vscode/settings.json index d9a338ecdf..b84364619b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,5 +33,6 @@ "deno.config": "./deno.jsonc", "deno.importMap": "./supabase/functions/import-map.json", "deno.lint": true, - "deno.path": ".build/package/bin/deno" + "deno.path": ".build/package/bin/deno", + "rust-analyzer.imports.group.enable": false } diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000000..9ad32d58ee --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +group_imports = "One"