Use nightly fmt to auto-reformat all the use statements. I will create a follow-up PR to do some manual additional cleanups. I did not want to include manual cleanups in the same PR as the initial automatic ones.
Groups use statements into 3 standard groups: std library, 3rd party crates, and brotli crate itself -- StdExternalCrate mode.
Note that the nightly fmt is required for this. It will not affect the regular cargo fmt CI check because regular one ignores use sections (the formatting has not been fully stabilized).
cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate
cd c && cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate
Note that the above steps can also be done with just: just fmt2
Use
nightly
fmt to auto-reformat all the use statements. I will create a follow-up PR to do some manual additional cleanups. I did not want to include manual cleanups in the same PR as the initial automatic ones.Groups
use
statements into 3 standard groups: std library, 3rd party crates, and brotli crate itself --StdExternalCrate
mode.Note that the nightly fmt is required for this. It will not affect the regular
cargo fmt
CI check because regular one ignoresuse
sections (the formatting has not been fully stabilized).Note that the above steps can also be done with
just
:just fmt2