3 Rustfmt is designed to be very configurable. You can create a TOML file called `rustfmt.toml` or `.rustfmt.toml`, place it in the project or any other parent directory and it will apply the options in that file. If none of these directories contain such a file, both your home directory and a directory called `rustfmt` in your [global config directory](https://docs.rs/dirs/4.0.0/dirs/fn.config_dir.html) (e.g. `.config/rustfmt/`) are checked as well.
5 A possible content of `rustfmt.toml` or `.rustfmt.toml` might look like this:
9 reorder_imports = false
12 Each configuration option is either stable or unstable.
13 Stable options can always be used, while unstable options are only available on a nightly toolchain and must be opted into.
14 To enable unstable options, set `unstable_features = true` in `rustfmt.toml` or pass `--unstable-features` to rustfmt.
16 # Configuration Options
18 Below you find a detailed visual guide on all the supported configuration options of rustfmt:
22 Maximum width of an array literal before falling back to vertical formatting.
24 - **Default value**: `60`
25 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
28 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `array_width` will take precedence.
30 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
32 ## `attr_fn_like_width`
34 Maximum width of the args of a function-like attributes before falling back to vertical formatting.
36 - **Default value**: `70`
37 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
40 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `attr_fn_like_width` will take precedence.
42 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
46 Where to put a binary operator when a binary expression goes multiline.
48 - **Default value**: `"Front"`
49 - **Possible values**: `"Front"`, `"Back"`
50 - **Stable**: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368))
52 #### `"Front"` (default):
56 let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
57 || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;
59 let sum = 123456789012345678901234567890
60 + 123456789012345678901234567890
61 + 123456789012345678901234567890;
63 let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
64 ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
72 let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||
73 barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;
75 let sum = 123456789012345678901234567890 +
76 123456789012345678901234567890 +
77 123456789012345678901234567890;
79 let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..
80 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
84 ## `blank_lines_lower_bound`
86 Minimum number of blank lines which must be put between items. If two items have fewer blank lines between
87 them, additional blank lines are inserted.
89 - **Default value**: `0`
90 - **Possible values**: *unsigned integer*
91 - **Stable**: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))
94 Original Code (rustfmt will not change it with the default value of `0`):
124 ## `blank_lines_upper_bound`
126 Maximum number of blank lines which can be put between items. If more than this number of consecutive empty
127 lines are found, they are trimmed down to match this integer.
129 - **Default value**: `1`
130 - **Possible values**: any non-negative integer
131 - **Stable**: No (tracking issue: [#3381](https://github.com/rust-lang/rustfmt/issues/3381))
181 See also: [`blank_lines_lower_bound`](#blank_lines_lower_bound)
185 Brace style for items
187 - **Default value**: `"SameLineWhere"`
188 - **Possible values**: `"AlwaysNextLine"`, `"PreferSameLine"`, `"SameLineWhere"`
189 - **Stable**: No (tracking issue: [#3376](https://github.com/rust-lang/rustfmt/issues/3376))
193 #### `"SameLineWhere"` (default):
200 fn lorem(ipsum: usize) {
204 fn lorem<T>(ipsum: T)
206 T: Add + Sub + Mul + Div,
212 #### `"AlwaysNextLine"`:
220 fn lorem(ipsum: usize)
225 fn lorem<T>(ipsum: T)
227 T: Add + Sub + Mul + Div,
233 #### `"PreferSameLine"`:
240 fn lorem(ipsum: usize) {
244 fn lorem<T>(ipsum: T)
246 T: Add + Sub + Mul + Div, {
251 ### Structs and enums
253 #### `"SameLineWhere"` (default):
268 #### `"AlwaysNextLine"`:
284 #### `"PreferSameLine"`:
300 Maximum width of a chain to fit on one line.
302 - **Default value**: `60`
303 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
306 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `chain_width` will take precedence.
308 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
312 Whether to use colored output or not.
314 - **Default value**: `"Auto"`
315 - **Possible values**: "Auto", "Always", "Never"
316 - **Stable**: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))
318 ## `combine_control_expr`
320 Combine control expressions with function calls.
322 - **Default value**: `true`
323 - **Possible values**: `true`, `false`
324 - **Stable**: No (tracking issue: [#3369](https://github.com/rust-lang/rustfmt/issues/3369))
326 #### `true` (default):
338 foo!(if let Some(..) = x {
351 foo!(while let Some(..) = x {
385 if let Some(..) = x {
402 while let Some(..) = x {
428 Maximum length of comments. No effect unless `wrap_comments = true`.
430 - **Default value**: `80`
431 - **Possible values**: any positive integer
432 - **Stable**: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))
434 **Note:** A value of `0` results in [`wrap_comments`](#wrap_comments) being applied regardless of a line's width.
436 #### `80` (default; comments shorter than `comment_width`):
438 // Lorem ipsum dolor sit amet, consectetur adipiscing elit.
441 #### `60` (comments longer than `comment_width`):
443 // Lorem ipsum dolor sit amet,
444 // consectetur adipiscing elit.
447 See also [`wrap_comments`](#wrap_comments).
449 ## `condense_wildcard_suffixes`
451 Replace strings of _ wildcards by a single .. in tuple patterns
453 - **Default value**: `false`
454 - **Possible values**: `true`, `false`
455 - **Stable**: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))
457 #### `false` (default):
461 let (lorem, ipsum, _, _) = (1, 2, 3, 4);
462 let (lorem, ipsum, ..) = (1, 2, 3, 4);
470 let (lorem, ipsum, ..) = (1, 2, 3, 4);
474 ## `control_brace_style`
476 Brace style for control flow constructs
478 - **Default value**: `"AlwaysSameLine"`
479 - **Possible values**: `"AlwaysNextLine"`, `"AlwaysSameLine"`, `"ClosingNextLine"`
480 - **Stable**: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))
482 #### `"AlwaysSameLine"` (default):
494 #### `"AlwaysNextLine"`:
509 #### `"ClosingNextLine"`:
522 ## `disable_all_formatting`
524 Don't reformat anything.
526 Note that this option may be soft-deprecated in the future once the [ignore](#ignore) option is stabilized. Nightly toolchain users are encouraged to use [ignore](#ignore) instead when possible.
528 - **Default value**: `false`
529 - **Possible values**: `true`, `false`
534 Specifies which edition is used by the parser.
536 - **Default value**: `"2015"`
537 - **Possible values**: `"2015"`, `"2018"`, `"2021"`
540 Rustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed
541 through the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified
548 ## `empty_item_single_line`
550 Put empty-body functions and impls on a single line
552 - **Default value**: `true`
553 - **Possible values**: `true`, `false`
554 - **Stable**: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))
556 #### `true` (default):
574 See also [`brace_style`](#brace_style), [`control_brace_style`](#control_brace_style).
577 ## `enum_discrim_align_threshold`
579 The maximum length of enum variant having discriminant, that gets vertically aligned with others.
580 Variants without discriminants would be ignored for the purpose of alignment.
582 Note that this is not how much whitespace is inserted, but instead the longest variant name that
583 doesn't get ignored when aligning.
585 - **Default value** : 0
586 - **Possible values**: any positive integer
587 - **Stable**: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))
595 RandomLongVariantGoesHere = 10,
600 VeryLongVariantNameHereA = 0,
601 VeryLongVariantNameHereBb = 1,
602 VeryLongVariantNameHereCcc = 2,
612 RandomLongVariantGoesHere = 10,
617 VeryLongVariantNameHereA = 0,
618 VeryLongVariantNameHereBb = 1,
619 VeryLongVariantNameHereCcc = 2,
624 ## `error_on_line_overflow`
626 Error if Rustfmt is unable to get all lines within `max_width`, except for comments and string
627 literals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by
628 refactoring your code to avoid long/complex expressions, usually by extracting a local variable or
629 using a shorter name.
631 - **Default value**: `false`
632 - **Possible values**: `true`, `false`
633 - **Stable**: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))
635 See also [`max_width`](#max_width).
637 ## `error_on_unformatted`
639 Error if unable to get comments or string literals within `max_width`, or they are left with
640 trailing whitespaces.
642 - **Default value**: `false`
643 - **Possible values**: `true`, `false`
644 - **Stable**: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))
648 This option is deprecated and has been renamed to `fn_params_layout` to better communicate that
649 it affects the layout of parameters in function signatures.
651 - **Default value**: `"Tall"`
652 - **Possible values**: `"Compressed"`, `"Tall"`, `"Vertical"`
655 #### `"Tall"` (default):
659 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
661 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
670 consectetur: Consectetur,
671 adipiscing: Adipiscing,
680 consectetur: Consectetur,
681 adipiscing: Adipiscing,
693 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
695 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
700 ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
701 adipiscing: Adipiscing, elit: Elit,
705 ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
706 adipiscing: Adipiscing, elit: Elit,
738 consectetur: Consectetur,
739 adipiscing: Adipiscing,
748 consectetur: Consectetur,
749 adipiscing: Adipiscing,
757 See also [`fn_params_layout`](#fn_params_layout)
761 Maximum width of the args of a function call before falling back to vertical formatting.
763 - **Default value**: `60`
764 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
767 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `fn_call_width` will take precedence.
769 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
771 ## `fn_params_layout`
773 Control the layout of parameters in function signatures.
775 - **Default value**: `"Tall"`
776 - **Possible values**: `"Compressed"`, `"Tall"`, `"Vertical"`
779 #### `"Tall"` (default):
783 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
785 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
794 consectetur: Consectetur,
795 adipiscing: Adipiscing,
804 consectetur: Consectetur,
805 adipiscing: Adipiscing,
817 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
819 fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
824 ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
825 adipiscing: Adipiscing, elit: Elit,
829 ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
830 adipiscing: Adipiscing, elit: Elit,
862 consectetur: Consectetur,
863 adipiscing: Adipiscing,
872 consectetur: Consectetur,
873 adipiscing: Adipiscing,
884 Put single-expression functions on a single line
886 - **Default value**: `false`
887 - **Possible values**: `true`, `false`
888 - **Stable**: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))
890 #### `false` (default):
893 fn lorem() -> usize {
897 fn lorem() -> usize {
906 fn lorem() -> usize { 42 }
908 fn lorem() -> usize {
914 See also [`control_brace_style`](#control_brace_style).
917 ## `force_explicit_abi`
919 Always print the abi for extern items
921 - **Default value**: `true`
922 - **Possible values**: `true`, `false`
925 **Note:** Non-"C" ABIs are always printed. If `false` then "C" is removed.
927 #### `true` (default):
931 pub static lorem: c_int;
939 pub static lorem: c_int;
943 ## `force_multiline_blocks`
945 Force multiline closure and match arm bodies to be wrapped in a block
947 - **Default value**: `false`
948 - **Possible values**: `false`, `true`
949 - **Stable**: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))
951 #### `false` (default):
955 result.and_then(|maybe_value| match maybe_value {
957 Some(value) => bar(),
962 println!("Hello World");
964 Some(dolor) => foo(),
973 result.and_then(|maybe_value| {
976 Some(value) => bar(),
983 println!("Hello World");
986 Some(dolor) => foo(),
992 ## `format_code_in_doc_comments`
994 Format code snippet included in doc comments.
996 - **Default value**: `false`
997 - **Possible values**: `true`, `false`
998 - **Stable**: No (tracking issue: [#3348](https://github.com/rust-lang/rustfmt/issues/3348))
1000 #### `false` (default):
1003 /// Adds one to the number given.
1014 /// # fn add_one(x: i32) -> i32 {
1018 fn add_one(x: i32) -> i32 {
1026 /// Adds one to the number given.
1033 /// assert_eq!(6, add_one(5));
1034 /// # fn add_one(x: i32) -> i32 {
1038 fn add_one(x: i32) -> i32 {
1043 ## `doc_comment_code_block_width`
1045 Max width for code snippets included in doc comments. Only used if [`format_code_in_doc_comments`](#format_code_in_doc_comments) is true.
1047 - **Default value**: `100`
1048 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
1049 - **Stable**: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))
1051 ## `format_generated_files`
1053 Format generated files. A file is considered generated
1054 if any of the first five lines contain a `@generated` comment marker.
1055 By default, generated files are reformatted, i. e. `@generated` marker is ignored.
1056 This option is currently ignored for stdin (`@generated` in stdin is ignored.)
1058 - **Default value**: `true`
1059 - **Possible values**: `true`, `false`
1060 - **Stable**: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))
1062 ## `format_macro_matchers`
1064 Format the metavariable matching patterns in macros.
1066 - **Default value**: `false`
1067 - **Possible values**: `true`, `false`
1068 - **Stable**: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))
1070 #### `false` (default):
1074 ($a: ident : $b: ty) => {
1077 ($a: ident $b: ident $c: ident) => {
1087 ($a:ident : $b:ty) => {
1090 ($a:ident $b:ident $c:ident) => {
1096 See also [`format_macro_bodies`](#format_macro_bodies).
1099 ## `format_macro_bodies`
1101 Format the bodies of macros.
1103 - **Default value**: `true`
1104 - **Possible values**: `true`, `false`
1105 - **Stable**: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))
1107 #### `true` (default):
1111 ($a: ident : $b: ty) => {
1114 ($a: ident $b: ident $c: ident) => {
1124 ($a: ident : $b: ty) => { $a(42): $b; };
1125 ($a: ident $b: ident $c: ident) => { $a=$b+$c; };
1129 See also [`format_macro_matchers`](#format_macro_matchers).
1131 ## `skip_macro_invocations`
1133 Skip formatting the bodies of macro invocations with the following names.
1135 rustfmt will not format any macro invocation for macros with names set in this list.
1136 Including the special value "*" will prevent any macro invocations from being formatted.
1138 Note: This option does not have any impact on how rustfmt formats macro definitions.
1140 - **Default value**: `[]`
1141 - **Possible values**: a list of macro name idents, `["name_0", "name_1", ..., "*"]`
1142 - **Stable**: No (tracking issue: [#5346](https://github.com/rust-lang/rustfmt/issues/5346))
1144 #### `[]` (default):
1146 rustfmt will follow its standard approach to formatting macro invocations.
1148 No macro invocations will be skipped based on their name. More information about rustfmt's standard macro invocation formatting behavior can be found in [#5437](https://github.com/rust-lang/rustfmt/discussions/5437).
1162 The named macro invocations will be skipped.
1176 The special selector `*` will skip all macro invocations.
1190 Format string literals where necessary
1192 - **Default value**: `false`
1193 - **Possible values**: `true`, `false`
1194 - **Stable**: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))
1196 #### `false` (default):
1200 let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing";
1208 let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \
1209 consectetur adipiscing";
1213 See also [`max_width`](#max_width).
1217 Use tab characters for indentation, spaces for alignment
1219 - **Default value**: `false`
1220 - **Possible values**: `true`, `false`
1223 #### `false` (default):
1226 fn lorem() -> usize {
1227 42 // spaces before 42
1234 fn lorem() -> usize {
1235 42 // tabs before 42
1239 See also: [`tab_spaces`](#tab_spaces).
1241 ## `hex_literal_case`
1243 Control the case of the letters in hexadecimal literal values
1245 - **Default value**: `Preserve`
1246 - **Possible values**: `Preserve`, `Upper`, `Lower`
1247 - **Stable**: No (tracking issue: [#5081](https://github.com/rust-lang/rustfmt/issues/5081))
1249 ## `hide_parse_errors`
1251 Do not show parse errors if the parser failed to parse files.
1253 - **Default value**: `false`
1254 - **Possible values**: `true`, `false`
1255 - **Stable**: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))
1259 Skip formatting files and directories that match the specified pattern.
1260 The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignore#_pattern_format). Be sure to use Unix/forwardslash `/` style paths. This path style will work on all platforms. Windows style paths with backslashes `\` are not supported.
1262 - **Default value**: format every file
1263 - **Possible values**: See an example below
1264 - **Stable**: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395))
1268 If you want to ignore specific files, put the following to your config file:
1277 If you want to ignore every file under `examples/`, put the following to your config file:
1285 If you want to ignore every file under the directory where you put your rustfmt.toml:
1293 Indent style of imports
1295 - **Default Value**: `"Block"`
1296 - **Possible values**: `"Block"`, `"Visual"`
1297 - **Stable**: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))
1299 #### `"Block"` (default):
1303 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
1304 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
1311 use foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
1312 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};
1315 See also: [`imports_layout`](#imports_layout).
1319 Item layout inside a imports block
1321 - **Default value**: "Mixed"
1322 - **Possible values**: "Horizontal", "HorizontalVertical", "Mixed", "Vertical"
1323 - **Stable**: No (tracking issue: [#3361](https://github.com/rust-lang/rustfmt/issues/3361))
1325 #### `"Mixed"` (default):
1328 use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};
1331 aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,
1332 eeeeeeeeeeeeeeeeee, ffffffffffffffffff,
1336 #### `"Horizontal"`:
1338 **Note**: This option forces all imports onto one line and may exceed `max_width`.
1341 use foo::{xxx, yyy, zzz};
1343 use foo::{aaa, bbb, ccc, ddd, eee, fff};
1346 #### `"HorizontalVertical"`:
1349 use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};
1382 Indent on expressions or items.
1384 - **Default value**: `"Block"`
1385 - **Possible values**: `"Block"`, `"Visual"`
1386 - **Stable**: No (tracking issue: [#3346](https://github.com/rust-lang/rustfmt/issues/3346))
1390 #### `"Block"` (default):
1410 let lorem = vec!["ipsum",
1422 #### `"Block"` (default):
1430 && dolor_consectetur
1432 && lorem_consectetur
1447 && dolor_consectetur
1449 && lorem_consectetur
1456 See also: [`control_brace_style`](#control_brace_style).
1458 ### Function arguments
1460 #### `"Block"` (default):
1465 fn lorem(ipsum: usize) {}
1485 fn lorem(ipsum: usize) {}
1487 fn lorem(ipsum: usize,
1500 #### `"Block"` (default):
1534 #### `"Block"` (default):
1542 Adipiscing: Eq = usize,
1543 Consectetur: Eq = usize,
1550 adipiscing: Adipiscing,
1551 consectetur: Consectetur,
1561 fn lorem<Ipsum: Eq = usize,
1565 Adipiscing: Eq = usize,
1566 Consectetur: Eq = usize,
1572 adipiscing: Adipiscing,
1573 consectetur: Consectetur,
1582 #### `"Block"` (default):
1597 let lorem = Lorem { ipsum: dolor,
1602 See also: [`struct_lit_single_line`](#struct_lit_single_line), [`indent_style`](#indent_style).
1604 ### Where predicates
1606 #### `"Block"` (default):
1609 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1623 fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
1633 ## `inline_attribute_width`
1635 Write an item and its attribute on the same line if their combined width is below a threshold
1637 - **Default value**: 0
1638 - **Possible values**: any positive integer
1639 - **Stable**: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))
1645 #[cfg(feature = "alloc")]
1651 #[cfg(feature = "alloc")] use core::slice;
1654 ## `match_arm_blocks`
1656 Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the `=>` operator.
1658 The Style Guide requires that bodies are block wrapped by default if a line break is required after the `=>`, but this option can be used to disable that behavior to prevent wrapping arm bodies in that event, so long as the body does not contain multiple statements nor line comments.
1660 - **Default value**: `true`
1661 - **Possible values**: `true`, `false`
1662 - **Stable**: No (tracking issue: [#3373](https://github.com/rust-lang/rustfmt/issues/3373))
1664 #### `true` (default):
1670 foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)
1672 dolor => println!("{}", sit),
1674 "foooooooooooooooooooooooo",
1675 "baaaaaaaaaaaaaaaaaaaaaaaarr",
1676 "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
1677 "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
1689 foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
1690 ipsum => println!("{}", sit),
1692 "foooooooooooooooooooooooo",
1693 "baaaaaaaaaaaaaaaaaaaaaaaarr",
1694 "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
1695 "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
1701 See also: [`match_block_trailing_comma`](#match_block_trailing_comma).
1703 ## `match_arm_leading_pipes`
1705 Controls whether to include a leading pipe on match arms
1707 - **Default value**: `Never`
1708 - **Possible values**: `Always`, `Never`, `Preserve`
1711 #### `Never` (default):
1713 // Leading pipes are removed from this:
1716 // | "foo" | "bar" => {}
1718 // | "something relatively long"
1719 // | "something really really really realllllllllllllly long" => println!("x"),
1720 // | "qux" => println!("y"),
1730 | "something relatively long"
1731 | "something really really really realllllllllllllly long" => println!("x"),
1732 "qux" => println!("y"),
1740 // Leading pipes are emitted on all arms of this:
1743 // "foo" | "bar" => {}
1745 // | "something relatively long"
1746 // | "something really really really realllllllllllllly long" => println!("x"),
1747 // "qux" => println!("y"),
1755 | "foo" | "bar" => {}
1757 | "something relatively long"
1758 | "something really really really realllllllllllllly long" => println!("x"),
1759 | "qux" => println!("y"),
1769 | "foo" | "bar" => {}
1771 | "something relatively long"
1772 | "something really really really realllllllllllllly long" => println!("x"),
1773 | "qux" => println!("y"),
1785 ## `match_block_trailing_comma`
1787 Put a trailing comma after a block based match arm (non-block arms are not affected)
1789 - **Default value**: `false`
1790 - **Possible values**: `true`, `false`
1793 #### `false` (default):
1801 Lorem::Dolor => println!("dolor"),
1814 Lorem::Dolor => println!("dolor"),
1819 See also: [`trailing_comma`](#trailing_comma), [`match_arm_blocks`](#match_arm_blocks).
1823 Maximum width of each line
1825 - **Default value**: `100`
1826 - **Possible values**: any positive integer
1829 See also [`error_on_line_overflow`](#error_on_line_overflow).
1833 Merge multiple derives into a single one.
1835 - **Default value**: `true`
1836 - **Possible values**: `true`, `false`
1839 #### `true` (default):
1842 #[derive(Eq, PartialEq, Debug, Copy, Clone)]
1849 #[derive(Eq, PartialEq, Debug, Copy, Clone)]
1852 #[derive(Eq, PartialEq)]
1854 #[derive(Copy, Clone)]
1858 ## `imports_granularity`
1860 Controls how imports are structured in `use` statements. Imports will be merged or split to the configured level of granularity.
1862 Similar to other `import` related configuration options, this option operates within the bounds of user-defined groups of imports. See [`group_imports`](#group_imports) for more information on import groups.
1864 Note that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.
1866 - **Default value**: `Preserve`
1867 - **Possible values**: `Preserve`, `Crate`, `Module`, `Item`, `One`
1868 - **Stable**: No (tracking issue: [#4991](https://github.com/rust-lang/rustfmt/issues/4991))
1871 #### `Preserve` (default):
1873 Do not change the granularity of any imports and preserve the original structure written by the developer.
1878 use foo::{a, c, d::e};
1884 Merge imports from the same crate into a single `use` statement. Conversely, imports from different crates are split into separate statements.
1898 Merge imports from the same module into a single `use` statement. Conversely, imports from different modules are split into separate statements.
1909 Flatten imports so that each has its own `use` statement.
1924 Merge all imports into a single `use` statement as long as they have the same visibility.
1927 pub use foo::{x, y};
1941 This option is deprecated. Use `imports_granularity = "Crate"` instead.
1943 - **Default value**: `false`
1944 - **Possible values**: `true`, `false`
1946 #### `false` (default):
1957 use foo::{a, b, c, d, e, f, g};
1963 Unix or Windows line endings
1965 - **Default value**: `"Auto"`
1966 - **Possible values**: `"Auto"`, `"Native"`, `"Unix"`, `"Windows"`
1969 #### `Auto` (default):
1971 The newline style is detected automatically on a per-file basis. Files
1972 with mixed line endings will be converted to the first detected line
1977 Line endings will be converted to `\r\n` on Windows and `\n` on all
1982 Line endings will be converted to `\n`.
1986 Line endings will be converted to `\r\n`.
1988 ## `normalize_comments`
1990 Convert /* */ comments to // comments where possible
1992 - **Default value**: `false`
1993 - **Possible values**: `true`, `false`
1994 - **Stable**: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))
1996 #### `false` (default):
2000 fn dolor() -> usize {}
2003 fn adipiscing() -> usize {}
2010 fn dolor() -> usize {}
2013 fn adipiscing() -> usize {}
2016 ## `normalize_doc_attributes`
2018 Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
2020 - **Default value**: `false`
2021 - **Possible values**: `true`, `false`
2022 - **Stable**: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))
2024 #### `false` (default):
2027 #![doc = "Example documentation"]
2029 #[doc = "Example item documentation"]
2032 /// Example item documentation
2039 //! Example documentation
2041 /// Example item documentation
2045 ## `overflow_delimited_expr`
2047 When structs, slices, arrays, and block/array-like macros are used as the last
2048 argument in an expression list, allow them to overflow (like blocks/closures)
2049 instead of being indented on a new line.
2051 - **Default value**: `false`
2052 - **Possible values**: `true`, `false`
2053 - **Stable**: No (tracking issue: [#3370](https://github.com/rust-lang/rustfmt/issues/3370))
2055 #### `false` (default):
2128 ## `remove_nested_parens`
2130 Remove nested parens.
2132 - **Default value**: `true`,
2133 - **Possible values**: `true`, `false`
2137 #### `true` (default):
2154 ## `reorder_impl_items`
2156 Reorder impl items. `type` and `const` are put first, then macros and methods.
2158 - **Default value**: `false`
2159 - **Possible values**: `true`, `false`
2160 - **Stable**: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))
2162 #### `false` (default)
2167 impl Iterator for Dummy {
2168 fn next(&mut self) -> Option<Self::Item> {
2175 impl Iterator for Dummy {
2178 fn next(&mut self) -> Option<Self::Item> {
2189 impl Iterator for Dummy {
2192 fn next(&mut self) -> Option<Self::Item> {
2198 ## `reorder_imports`
2200 Reorder import and extern crate statements alphabetically in groups (a group is
2201 separated by a newline).
2203 - **Default value**: `true`
2204 - **Possible values**: `true`, `false`
2207 #### `true` (default):
2227 Controls the strategy for how consecutive imports are grouped together.
2229 Controls the strategy for grouping sets of consecutive imports. Imports may contain newlines between imports and still be grouped together as a single set, but other statements between imports will result in different grouping sets.
2231 - **Default value**: `Preserve`
2232 - **Possible values**: `Preserve`, `StdExternalCrate`, `One`
2233 - **Stable**: No (tracking issue: [#5083](https://github.com/rust-lang/rustfmt/issues/5083))
2235 Each set of imports (one or more `use` statements, optionally separated by newlines) will be formatted independently. Other statements such as `mod ...` or `extern crate ...` will cause imports to not be grouped together.
2237 #### `Preserve` (default):
2239 Preserve the source file's import groups.
2242 use super::update::convert_publish_payload;
2245 use alloc::alloc::Layout;
2246 use juniper::{FieldError, FieldResult};
2251 use broker::database::PooledConnection;
2253 use super::schema::{Context, Payload};
2254 use crate::models::Event;
2258 #### `StdExternalCrate`:
2260 Discard existing import groups, and create three groups for:
2261 1. `std`, `core` and `alloc`,
2263 3. `self`, `super` and `crate` imports.
2266 use alloc::alloc::Layout;
2270 use broker::database::PooledConnection;
2272 use juniper::{FieldError, FieldResult};
2275 use super::schema::{Context, Payload};
2276 use super::update::convert_publish_payload;
2277 use crate::models::Event;
2282 Discard existing import groups, and create a single group for everything
2285 use super::schema::{Context, Payload};
2286 use super::update::convert_publish_payload;
2287 use crate::models::Event;
2288 use alloc::alloc::Layout;
2289 use broker::database::PooledConnection;
2292 use juniper::{FieldError, FieldResult};
2297 ## `reorder_modules`
2299 Reorder `mod` declarations alphabetically in group.
2301 - **Default value**: `true`
2302 - **Possible values**: `true`, `false`
2305 #### `true` (default)
2329 **Note** `mod` with `#[macro_export]` will not be reordered since that could change the semantics
2330 of the original source code.
2332 ## `required_version`
2334 Require a specific version of rustfmt. If you want to make sure that the
2335 specific version of rustfmt is used in your CI, use this option.
2337 - **Default value**: `CARGO_PKG_VERSION`
2338 - **Possible values**: any published version (e.g. `"0.3.8"`)
2339 - **Stable**: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))
2341 ## `short_array_element_width_threshold`
2343 The width threshold for an array element to be considered "short".
2345 The layout of an array is dependent on the length of each of its elements.
2346 If the length of every element in an array is below this threshold (all elements are "short") then the array can be formatted in the mixed/compressed style, but if any one element has a length that exceeds this threshold then the array elements will have to be formatted vertically.
2348 - **Default value**: `10`
2349 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2352 #### `10` (default):
2355 pub const FORMAT_TEST: [u64; 5] = [
2367 pub const FORMAT_TEST: [u64; 5] = [
2368 0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,
2373 See also [`max_width`](#max_width).
2377 Don't reformat out of line modules
2379 - **Default value**: `false`
2380 - **Possible values**: `true`, `false`
2381 - **Stable**: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3389))
2383 ## `single_line_if_else_max_width`
2385 Maximum line length for single line if-else expressions. A value of `0` (zero) results in if-else expressions always being broken into multiple lines. Note this occurs when `use_small_heuristics` is set to `Off`.
2387 - **Default value**: `50`
2388 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2391 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `single_line_if_else_max_width` will take precedence.
2393 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
2395 ## `space_after_colon`
2397 Leave a space after the colon.
2399 - **Default value**: `true`
2400 - **Possible values**: `true`, `false`
2401 - **Stable**: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))
2403 #### `true` (default):
2406 fn lorem<T: Eq>(t: T) {
2407 let lorem: Dolor = Lorem {
2417 fn lorem<T:Eq>(t:T) {
2418 let lorem:Dolor = Lorem {
2425 See also: [`space_before_colon`](#space_before_colon).
2427 ## `space_before_colon`
2429 Leave a space before the colon.
2431 - **Default value**: `false`
2432 - **Possible values**: `true`, `false`
2433 - **Stable**: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))
2435 #### `false` (default):
2438 fn lorem<T: Eq>(t: T) {
2439 let lorem: Dolor = Lorem {
2449 fn lorem<T : Eq>(t : T) {
2450 let lorem : Dolor = Lorem {
2457 See also: [`space_after_colon`](#space_after_colon).
2459 ## `spaces_around_ranges`
2461 Put spaces around the .., ..=, and ... range operators
2463 - **Default value**: `false`
2464 - **Possible values**: `true`, `false`
2465 - **Stable**: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))
2467 #### `false` (default):
2495 let lorem = 0 .. 10;
2496 let ipsum = 0 ..= 10;
2515 ## `struct_field_align_threshold`
2517 The maximum diff of width between struct fields to be aligned with each other.
2519 - **Default value** : 0
2520 - **Possible values**: any non-negative integer
2521 - **Stable**: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))
2543 ## `struct_lit_single_line`
2545 Put small struct literals on a single line
2547 - **Default value**: `true`
2548 - **Possible values**: `true`, `false`
2549 - **Stable**: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))
2551 #### `true` (default):
2555 let lorem = Lorem { foo: bar, baz: ofo };
2570 See also: [`indent_style`](#indent_style).
2572 ## `struct_lit_width`
2574 Maximum width in the body of a struct literal 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`.
2576 - **Default value**: `18`
2577 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2580 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `struct_lit_width` will take precedence.
2582 See also [`max_width`](#max_width), [`use_small_heuristics`](#use_small_heuristics), and [`struct_lit_single_line`](#struct_lit_single_line)
2584 ## `struct_variant_width`
2586 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`.
2588 - **Default value**: `35`
2589 - **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2592 By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `struct_variant_width` will take precedence.
2594 See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuristics)
2598 Number of spaces per tab
2600 - **Default value**: `4`
2601 - **Possible values**: any positive integer
2608 let ipsum = dolor();
2610 "amet consectetur adipiscing elit amet",
2611 "consectetur adipiscing elit amet consectetur.",
2620 let ipsum = dolor();
2622 "amet consectetur adipiscing elit amet",
2623 "consectetur adipiscing elit amet consectetur.",
2628 See also: [`hard_tabs`](#hard_tabs).
2633 How to handle trailing commas for lists
2635 - **Default value**: `"Vertical"`
2636 - **Possible values**: `"Always"`, `"Never"`, `"Vertical"`
2637 - **Stable**: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))
2639 #### `"Vertical"` (default):
2643 let Lorem { ipsum, dolor, sit } = amet;
2659 let Lorem { ipsum, dolor, sit, } = amet;
2675 let Lorem { ipsum, dolor, sit } = amet;
2687 See also: [`match_block_trailing_comma`](#match_block_trailing_comma).
2689 ## `trailing_semicolon`
2691 Add trailing semicolon after break, continue and return
2693 - **Default value**: `true`
2694 - **Possible values**: `true`, `false`
2695 - **Stable**: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))
2697 #### `true` (default):
2711 ## `type_punctuation_density`
2713 Determines if `+` or `=` are wrapped in spaces in the punctuation of types
2715 - **Default value**: `"Wide"`
2716 - **Possible values**: `"Compressed"`, `"Wide"`
2717 - **Stable**: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))
2719 #### `"Wide"` (default):
2722 fn lorem<Ipsum: Dolor + Sit = Amet>() {
2727 #### `"Compressed"`:
2730 fn lorem<Ipsum: Dolor+Sit=Amet>() {
2735 ## `unstable_features`
2737 Enable unstable features on the unstable channel.
2739 - **Default value**: `false`
2740 - **Possible values**: `true`, `false`
2741 - **Stable**: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))
2743 ## `use_field_init_shorthand`
2745 Use field initialize shorthand if possible.
2747 - **Default value**: `false`
2748 - **Possible values**: `true`, `false`
2751 #### `false` (default):
2764 let a = Foo { x, y, z };
2765 let b = Foo { x: x, y: y, z: z };
2782 let a = Foo { x, y, z };
2786 ## `use_small_heuristics`
2788 This option can be used to simplify the management and bulk updates of the granular width configuration settings ([`fn_call_width`](#fn_call_width), [`attr_fn_like_width`](#attr_fn_like_width), [`struct_lit_width`](#struct_lit_width), [`struct_variant_width`](#struct_variant_width), [`array_width`](#array_width), [`chain_width`](#chain_width), [`single_line_if_else_max_width`](#single_line_if_else_max_width)), that respectively control when formatted constructs are multi-lined/vertical based on width.
2790 Note that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by `use_small_heuristics`.
2792 - **Default value**: `"Default"`
2793 - **Possible values**: `"Default"`, `"Off"`, `"Max"`
2796 #### `Default` (default):
2797 When `use_small_heuristics` is set to `Default`, the values for the granular width settings are calculated as a ratio of the value for `max_width`.
2800 * [`fn_call_width`](#fn_call_width) - `60%`
2801 * [`attr_fn_like_width`](#attr_fn_like_width) - `70%`
2802 * [`struct_lit_width`](#struct_lit_width) - `18%`
2803 * [`struct_variant_width`](#struct_variant_width) - `35%`
2804 * [`array_width`](#array_width) - `60%`
2805 * [`chain_width`](#chain_width) - `60%`
2806 * [`single_line_if_else_max_width`](#single_line_if_else_max_width) - `50%`
2808 For example when `max_width` is set to `100`, the width settings are:
2809 * `fn_call_width=60`
2810 * `attr_fn_like_width=70`
2811 * `struct_lit_width=18`
2812 * `struct_variant_width=35`
2815 * `single_line_if_else_max_width=50`
2817 and when `max_width` is set to `200`:
2818 * `fn_call_width=120`
2819 * `attr_fn_like_width=140`
2820 * `struct_lit_width=36`
2821 * `struct_variant_width=70`
2824 * `single_line_if_else_max_width=100`
2830 Sit { amet: Consectetur, adipiscing: Elit },
2848 let lorem = Lorem { ipsum: dolor };
2850 let lorem = if ipsum { dolor } else { sit };
2855 When `use_small_heuristics` is set to `Off`, the granular width settings are functionally disabled and ignored. See the documentation for the respective width config options for specifics.
2868 lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");
2875 let lorem = if ipsum {
2884 When `use_small_heuristics` is set to `Max`, then each granular width setting is set to the same value as `max_width`.
2886 So if `max_width` is set to `200`, then all the width settings are also set to `200`.
2887 * `fn_call_width=200`
2888 * `attr_fn_like_width=200`
2889 * `struct_lit_width=200`
2890 * `struct_variant_width=200`
2893 * `single_line_if_else_max_width=200`
2899 Sit { amet: Consectetur, adipiscing: Elit },
2903 lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");
2905 let lorem = Lorem { ipsum: dolor, sit: amet };
2907 let lorem = if ipsum { dolor } else { sit };
2913 * [`max_width`](#max_width)
2914 * [`fn_call_width`](#fn_call_width)
2915 * [`attr_fn_like_width`](#attr_fn_like_width)
2916 * [`struct_lit_width`](#struct_lit_width)
2917 * [`struct_variant_width`](#struct_variant_width)
2918 * [`array_width`](#array_width)
2919 * [`chain_width`](#chain_width)
2920 * [`single_line_if_else_max_width`](#single_line_if_else_max_width)
2922 ## `use_try_shorthand`
2924 Replace uses of the try! macro by the ? shorthand
2926 - **Default value**: `false`
2927 - **Possible values**: `true`, `false`
2930 #### `false` (default):
2934 let lorem = ipsum.map(|dolor| dolor.sit())?;
2936 let lorem = try!(ipsum.map(|dolor| dolor.sit()));
2944 let lorem = ipsum.map(|dolor| dolor.sit())?;
2950 Which version of the formatting rules to use. `Version::One` is backwards-compatible
2951 with Rustfmt 1.0. Other versions are only backwards compatible within a major
2954 - **Default value**: `One`
2955 - **Possible values**: `One`, `Two`
2956 - **Stable**: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))
2964 ## `where_single_line`
2966 Forces the `where` clause to be laid out on a single line.
2968 - **Default value**: `false`
2969 - **Possible values**: `true`, `false`
2970 - **Stable**: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))
2972 #### `false` (default):
2987 where Option<T>: Ipsum
2993 See also [`brace_style`](#brace_style), [`control_brace_style`](#control_brace_style).
2998 Break comments to fit on the line
3000 - **Default value**: `false`
3001 - **Possible values**: `true`, `false`
3002 - **Stable**: No (tracking issue: [#3347](https://github.com/rust-lang/rustfmt/issues/3347))
3004 #### `false` (default):
3007 // Lorem ipsum dolor sit amet, consectetur adipiscing elit,
3008 // sed do eiusmod tempor incididunt ut labore et dolore
3009 // magna aliqua. Ut enim ad minim veniam, quis nostrud
3010 // exercitation ullamco laboris nisi ut aliquip ex ea
3011 // commodo consequat.
3013 // Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
3019 // Lorem ipsum dolor sit amet, consectetur adipiscing elit,
3020 // sed do eiusmod tempor incididunt ut labore et dolore
3021 // magna aliqua. Ut enim ad minim veniam, quis nostrud
3022 // exercitation ullamco laboris nisi ut aliquip ex ea
3023 // commodo consequat.
3034 Internal option, use `--backup`
3036 ## `print_misformatted_file_names`
3038 Internal option, use `-l` or `--files-with-diff`