Skip to content

Commit abc361f

Browse files
Update recommended rustfmt config (#96)
Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
1 parent 164a8a1 commit abc361f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/wiki/formatting_scheme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ use_field_init_shorthand = true
3737
# END LINEBENDER RUSTFMT CONFIG
3838
```
3939

40+
You may also want to occasionally use this unstable config:
41+
42+
```toml
43+
# Groups imports in a predictable way: first core/alloc/std, then other crates, then the current crate.
44+
group_imports = "StdExternalCrate"
45+
```
46+
47+
We don't recommend it as a permanent config value even for nightly projects, because the way it reorders items [isn't always ideal](https://github.com/linebender/linebender.github.io/issues/87).
48+
4049
## Markdown
4150

4251
In Markdown files, every paragraph should have one line per sentence.

0 commit comments

Comments
 (0)