From 18ca7963c3d4f47c73125eabf8ddbbe364db07cd Mon Sep 17 00:00:00 2001 From: Leo Valais Date: Thu, 20 Feb 2025 20:41:13 +0100 Subject: [PATCH] editoast: add rustfmt.toml to .gitignore We prefer using un-merged `use` statements for clarity and ease of review. `rustfmt` has a `nightly` option to do so automatically, but we don't want to ask everyone to use `nightly` rust. Ignoring `rustfmt.toml` allows to define it locally and still benefit from the auto-formatting of `use` statements, without the risk of accidentally committing it. ``` $ cat rustfmt.toml imports_granularity = "item" ``` If one day we want to commit a mandatory `rustfmt.toml`, we can always revert this commit. Signed-off-by: Leo Valais --- editoast/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editoast/.gitignore b/editoast/.gitignore index 6b5ca9496b0..3ebcd0baeb4 100644 --- a/editoast/.gitignore +++ b/editoast/.gitignore @@ -2,3 +2,6 @@ target *.snap.new assets/sprites/*/sprites.* assets/fonts/glyphs/* + +# allows using nightly rustfmt options locally without imposing nightly to everyone publicly +rustfmt.toml