Skip to content

Commit 0456dcb

Browse files
committed
style: Allow rustfmt to organize imports
Add `group_imports` and `import_granularity` to our rustfmt config. These values are the same as in rust-lang/rust.
1 parent 294a882 commit 0456dcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rustfmt.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
error_on_line_overflow = true
21
edition = "2021"
2+
error_on_line_overflow = true
3+
group_imports = "StdExternalCrate"
4+
imports_granularity = "Module"

0 commit comments

Comments
 (0)