Skip to content

Commit 23cf487

Browse files
docs: re-include style_edition deleted by merge
1 parent 0bae336 commit 23cf487

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Configurations.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,6 +2732,17 @@ By default this option is set as a percentage of [`max_width`](#max_width) provi
27322732

27332733
See also [`max_width`](#max_width), [`use_small_heuristics`](#use_small_heuristics), and [`struct_lit_single_line`](#struct_lit_single_line)
27342734

2735+
## `style_edition`
2736+
2737+
Controls the edition of the [Rust Style Guide] to use for formatting ([RFC 3338])
2738+
2739+
- **Default value**: `"2015"`
2740+
- **Possible values**: `"2015"`, `"2018"`, `"2021"`, `"2024"` (unstable variant)
2741+
- **Stable**: No
2742+
2743+
[Rust Style Guide]: https://doc.rust-lang.org/nightly/style-guide/
2744+
[RFC 3338]: https://rust-lang.github.io/rfcs/3338-style-evolution.html
2745+
27352746
## `struct_variant_width`
27362747

27372748
Maximum width in the body of a struct variant before falling back to vertical formatting. A value of `0` (zero) results in struct literals always being broken into multiple lines. Note this occurs when `use_small_heuristics` is set to `Off`.

0 commit comments

Comments
 (0)