Skip to content

Commit

Permalink
docs: re-include style_edition deleted by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ologbonowiwi committed Oct 10, 2024
1 parent 0bae336 commit 23cf487
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2732,6 +2732,17 @@ By default this option is set as a percentage of [`max_width`](#max_width) provi

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

## `style_edition`

Controls the edition of the [Rust Style Guide] to use for formatting ([RFC 3338])

- **Default value**: `"2015"`
- **Possible values**: `"2015"`, `"2018"`, `"2021"`, `"2024"` (unstable variant)
- **Stable**: No

[Rust Style Guide]: https://doc.rust-lang.org/nightly/style-guide/
[RFC 3338]: https://rust-lang.github.io/rfcs/3338-style-evolution.html

## `struct_variant_width`

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`.
Expand Down

0 comments on commit 23cf487

Please sign in to comment.