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 <faith.ekstrand@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31510>
This commit is contained in:
LingMan 2024-10-03 17:43:52 +02:00 committed by Marge Bot
parent 0ff3e2a0f9
commit 62b8e053f7

1
rustfmt.toml Normal file
View File

@ -0,0 +1 @@
edition = "2021"