From 62b8e053f74e63431feebb9aad2672a3e1f7b2a0 Mon Sep 17 00:00:00 2001 From: LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org> Date: Thu, 3 Oct 2024 17:43:52 +0200 Subject: [PATCH] mesa: Add rustfmt.toml Unless rustfmt gets informed that we use the 2021 edition, it chokes on C-string literals. Passing the `--edition` parameter with every invocation would be annoying. Create a config file instead. Reviewed-by: Faith Ekstrand Reviewed-by: Karol Herbst Part-of: --- rustfmt.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000000..3a26366d4da --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2021"