diff --git a/.rustfmt.toml b/.rustfmt.toml deleted file mode 100644 index a311b9d..0000000 --- a/.rustfmt.toml +++ /dev/null @@ -1,2 +0,0 @@ -edition = "2021" -newline_style = "Unix" diff --git a/nix/formatter.nix b/nix/formatter.nix index 057b511..8d92498 100644 --- a/nix/formatter.nix +++ b/nix/formatter.nix @@ -8,6 +8,11 @@ programs.nixfmt.enable = true; programs.rustfmt.enable = true; programs.taplo.enable = true; + + settings.formatter.rustfmt.options = [ + "--config" + "newline_style=Unix" + ]; }; }; }