Skip to content

Commit

Permalink
style: Allow rustfmt to organize imports
Browse files Browse the repository at this point in the history
Add `group_imports` and `import_granularity` to our rustfmt config.
These values are the same as in rust-lang/rust.

(backport <rust-lang#4136>)
(cherry picked from commit 0456dcb)
  • Loading branch information
tgross35 committed Nov 25, 2024
1 parent a2e24e4 commit 68b8ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
error_on_line_overflow = true
edition = "2021"
error_on_line_overflow = true
group_imports = "StdExternalCrate"
imports_granularity = "Module"

0 comments on commit 68b8ad5

Please sign in to comment.