Commit Graph

1 Commits

Author SHA1 Message Date
Joseph Birr-Pixton b6f283ed79 Ask rustfmt to make our imports consistent
These are nightly-only options: so keep them in a separate file.

When it sees unstable features, stable rustfmt gives a diagnostic like:

> Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
> Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.

But: _does_ otherwise format the files and exit non-zero.  However, this is noisy.

We arrange that `cargo +nightly fmt-unstable` also does the right thing.
2024-03-01 15:25:48 +00:00