diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-02-28 14:53:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 13:53:04 +0000 |
commit | 98bd306816f8c3d3e7569032b9b6ace76892d963 (patch) | |
tree | 84f998bf043a81962bd642755ba0c51e82ec4c09 /rustfmt.toml | |
parent | 2afd5431b17d35400b37bb4093acb2a3a128ee04 (diff) | |
download | servo-98bd306816f8c3d3e7569032b9b6ace76892d963.tar.gz servo-98bd306816f8c3d3e7569032b9b6ace76892d963.zip |
mach: Do not use unstable rust for `rustfmt` (#31441)
We can use stable rust if we pass the unstable configuration as
command-line arguments to rustfmt itself. This prevents needing to
install an unstable rust toolchain.
The one downside here is that it doesn't seem that "ignore" is
supported so we have to start formatting the files in "third_party."
This shouldn't be a huge issue because we don't plan to check much more
rust code into those directories.
Diffstat (limited to 'rustfmt.toml')
-rw-r--r-- | rustfmt.toml | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index ff489540a45..ecd1b1465d0 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,6 +1,2 @@ match_block_trailing_comma = true -binop_separator = "Back" reorder_imports = true -group_imports = "StdExternalCrate" -imports_granularity = "Module" -ignore = ["third_party"] |