From 9124550ad0c2cfcb43ece8ba3111c4804c0c6322 Mon Sep 17 00:00:00 2001 From: sinavir Date: Sun, 13 Oct 2024 19:51:08 +0200 Subject: [PATCH] fix(rust-fmt): Better formatting --- backend/rustfmt.toml | 3 +++ provisioning/shell.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 backend/rustfmt.toml diff --git a/backend/rustfmt.toml b/backend/rustfmt.toml new file mode 100644 index 0000000..5cf55b7 --- /dev/null +++ b/backend/rustfmt.toml @@ -0,0 +1,3 @@ +unstable_features = true +group_imports = "StdExternalCrate" +imports_granularity = "Module" diff --git a/provisioning/shell.nix b/provisioning/shell.nix index 54ae55a..1179fd7 100644 --- a/provisioning/shell.nix +++ b/provisioning/shell.nix @@ -6,6 +6,6 @@ pkgs.mkShell { pkgs.cargo-edit pkgs.rustc pkgs.rust-analyzer - pkgs.rustfmt + (pkgs.rustfmt.override { asNightly = true; }) ]; }