[System]
You are a helpful assistant that answers strictly in JSON. Here's the JSON schema you must adhere to:
<schema>
{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://json.schemastore.org/rustfmt.json","$comment":"Parts of this file were taken from rustfmt's repository, which is double licensed under MIT and Apache 2.0, on 2024-10-21.","title":"rustfmt","description":"rustfmt configurations","type":"object","properties":{"array_width":{"type":"integer","description":"Maximum width of an array literal before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `array_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"Maximum width of an array literal before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `array_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
Maximum width of an array literal before falling back to vertical formatting.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for array_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":60},"attr_fn_like_width":{"type":"integer","description":"Maximum width of the args of a function-like attributes before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `attr_fn_like_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"Maximum width of the args of a function-like attributes before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `attr_fn_like_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
Maximum width of the args of a function-like attributes before falling back to vertical formatting.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for attr_fn_like_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":70},"binop_separator":{"type":"string","description":"Where to put a binary operator when a binary expression goes multiline.\n\nStable: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368))\n\n\n#### `\"Front\"` (default):\n\n```rust\nfn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\n        || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890\n        + 123456789012345678901234567890\n        + 123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n        ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n```\n\n#### `\"Back\"`:\n\n```rust\nfn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||\n        barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890 +\n        123456789012345678901234567890 +\n        123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..\n        bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n```","markdownDescription":"Where to put a binary operator when a binary expression goes multiline.\n\nStable: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368))\n\n\n#### `\"Front\"` (default):\n\n```rust\nfn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\n        || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890\n        + 123456789012345678901234567890\n        + 123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n        ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n```\n\n#### `\"Back\"`:\n\n```rust\nfn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||\n        barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890 +\n        123456789012345678901234567890 +\n        123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..\n        bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n```","x-intellij-html-description":"
Where to put a binary operator when a binary expression goes multiline.
\n
Stable: No (tracking issue: #3368)
\n
"Front" (default):
\n
fn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\n        || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890\n        + 123456789012345678901234567890\n        + 123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n        ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n
\n
"Back":
\n
fn main() {\n    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||\n        barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;\n\n    let sum = 123456789012345678901234567890 +\n        123456789012345678901234567890 +\n        123456789012345678901234567890;\n\n    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..\n        bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;\n}\n
\n","default":"Front","enum":["Front","Back"]},"blank_lines_lower_bound":{"type":"integer","description":"Minimum number of blank lines which must be put between items. If two items have fewer blank lines between\nthem, additional blank lines are inserted.\n\nPossible values: *unsigned integer*\n\nStable: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))\n\n\n### Example\nOriginal Code (rustfmt will not change it with the default value of `0`):\n\n```rust\n#![rustfmt::skip]\n\nfn foo() {\n    println!(\"a\");\n}\nfn bar() {\n    println!(\"b\");\n    println!(\"c\");\n}\n```\n\n#### `1`\n```rust\nfn foo() {\n\n    println!(\"a\");\n}\n\nfn bar() {\n\n    println!(\"b\");\n\n    println!(\"c\");\n}\n```","markdownDescription":"Minimum number of blank lines which must be put between items. If two items have fewer blank lines between\nthem, additional blank lines are inserted.\n\nPossible values: *unsigned integer*\n\nStable: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))\n\n\n### Example\nOriginal Code (rustfmt will not change it with the default value of `0`):\n\n```rust\n#![rustfmt::skip]\n\nfn foo() {\n    println!(\"a\");\n}\nfn bar() {\n    println!(\"b\");\n    println!(\"c\");\n}\n```\n\n#### `1`\n```rust\nfn foo() {\n\n    println!(\"a\");\n}\n\nfn bar() {\n\n    println!(\"b\");\n\n    println!(\"c\");\n}\n```","x-intellij-html-description":"
Minimum number of blank lines which must be put between items. If two items have fewer blank lines between\nthem, additional blank lines are inserted.
\n
Possible values: unsigned integer
\n
Stable: No (tracking issue: #3382)
\n
Example
\n
Original Code (rustfmt will not change it with the default value of 0):
\n
#![rustfmt::skip]\n\nfn foo() {\n    println!("a");\n}\nfn bar() {\n    println!("b");\n    println!("c");\n}\n
\n
1
\n
fn foo() {\n\n    println!("a");\n}\n\nfn bar() {\n\n    println!("b");\n\n    println!("c");\n}\n
\n","default":0},"blank_lines_upper_bound":{"type":"integer","description":"Maximum number of blank lines which can be put between items. If more than this number of consecutive empty\nlines are found, they are trimmed down to match this integer.\n\nPossible values: any non-negative integer\n\nStable: No (tracking issue: [#3381](https://github.com/rust-lang/rustfmt/issues/3381))\n\n\n### Example\nOriginal Code:\n\n```rust\n#![rustfmt::skip]\n\nfn foo() {\n    println!(\"a\");\n}\n\n\n\nfn bar() {\n    println!(\"b\");\n\n\n    println!(\"c\");\n}\n```\n\n#### `1` (default):\n```rust\nfn foo() {\n    println!(\"a\");\n}\n\nfn bar() {\n    println!(\"b\");\n\n    println!(\"c\");\n}\n```\n\n#### `2`:\n```rust\nfn foo() {\n    println!(\"a\");\n}\n\n\nfn bar() {\n    println!(\"b\");\n\n\n    println!(\"c\");\n}\n```\n\nSee also: `blank_lines_lower_bound`","markdownDescription":"Maximum number of blank lines which can be put between items. If more than this number of consecutive empty\nlines are found, they are trimmed down to match this integer.\n\nPossible values: any non-negative integer\n\nStable: No (tracking issue: [#3381](https://github.com/rust-lang/rustfmt/issues/3381))\n\n\n### Example\nOriginal Code:\n\n```rust\n#![rustfmt::skip]\n\nfn foo() {\n    println!(\"a\");\n}\n\n\n\nfn bar() {\n    println!(\"b\");\n\n\n    println!(\"c\");\n}\n```\n\n#### `1` (default):\n```rust\nfn foo() {\n    println!(\"a\");\n}\n\nfn bar() {\n    println!(\"b\");\n\n    println!(\"c\");\n}\n```\n\n#### `2`:\n```rust\nfn foo() {\n    println!(\"a\");\n}\n\n\nfn bar() {\n    println!(\"b\");\n\n\n    println!(\"c\");\n}\n```\n\nSee also: `blank_lines_lower_bound`","x-intellij-html-description":"
Maximum number of blank lines which can be put between items. If more than this number of consecutive empty\nlines are found, they are trimmed down to match this integer.
\n
Possible values: any non-negative integer
\n
Stable: No (tracking issue: #3381)
\n
Example
\n
Original Code:
\n
#![rustfmt::skip]\n\nfn foo() {\n    println!("a");\n}\n\n\n\nfn bar() {\n    println!("b");\n\n\n    println!("c");\n}\n
\n
1 (default):
\n
fn foo() {\n    println!("a");\n}\n\nfn bar() {\n    println!("b");\n\n    println!("c");\n}\n
\n
2:
\n
fn foo() {\n    println!("a");\n}\n\n\nfn bar() {\n    println!("b");\n\n\n    println!("c");\n}\n
\n
See also: blank_lines_lower_bound
\n","default":1},"brace_style":{"type":"string","description":"Brace style for items\n\nStable: No (tracking issue: [#3376](https://github.com/rust-lang/rustfmt/issues/3376))\n\n\n### Functions\n\n#### `\"SameLineWhere\"` (default):\n\n```rust\nfn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nfn lorem()\n{\n    // body\n}\n\nfn lorem(ipsum: usize)\n{\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n```\n\n#### `\"PreferSameLine\"`:\n\n```rust\nfn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div, {\n    // body\n}\n```\n\n### Structs and enums\n\n#### `\"SameLineWhere\"` (default):\n\n```rust\nstruct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nstruct Lorem\n{\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n```\n\n#### `\"PreferSameLine\"`:\n\n```rust\nstruct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq, {\n    sit: T,\n}\n```","markdownDescription":"Brace style for items\n\nStable: No (tracking issue: [#3376](https://github.com/rust-lang/rustfmt/issues/3376))\n\n\n### Functions\n\n#### `\"SameLineWhere\"` (default):\n\n```rust\nfn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nfn lorem()\n{\n    // body\n}\n\nfn lorem(ipsum: usize)\n{\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n```\n\n#### `\"PreferSameLine\"`:\n\n```rust\nfn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div, {\n    // body\n}\n```\n\n### Structs and enums\n\n#### `\"SameLineWhere\"` (default):\n\n```rust\nstruct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nstruct Lorem\n{\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n```\n\n#### `\"PreferSameLine\"`:\n\n```rust\nstruct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq, {\n    sit: T,\n}\n```","x-intellij-html-description":"
Brace style for items
\n
Stable: No (tracking issue: #3376)
\n
Functions
\n
"SameLineWhere" (default):
\n
fn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n
\n
"AlwaysNextLine":
\n
fn lorem()\n{\n    // body\n}\n\nfn lorem(ipsum: usize)\n{\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div,\n{\n    // body\n}\n
\n
"PreferSameLine":
\n
fn lorem() {\n    // body\n}\n\nfn lorem(ipsum: usize) {\n    // body\n}\n\nfn lorem<T>(ipsum: T)\nwhere\n    T: Add + Sub + Mul + Div, {\n    // body\n}\n
\n
Structs and enums
\n
"SameLineWhere" (default):
\n
struct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n
\n
"AlwaysNextLine":
\n
struct Lorem\n{\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq,\n{\n    sit: T,\n}\n
\n
"PreferSameLine":
\n
struct Lorem {\n    ipsum: bool,\n}\n\nstruct Dolor<T>\nwhere\n    T: Eq, {\n    sit: T,\n}\n
\n","default":"SameLineWhere","enum":["AlwaysNextLine","PreferSameLine","SameLineWhere"]},"chain_width":{"type":"integer","description":"Maximum width of a chain to fit on one line.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `chain_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"Maximum width of a chain to fit on one line.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `chain_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
Maximum width of a chain to fit on one line.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for chain_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":60},"color":{"type":"string","description":"Whether to use colored output or not.\n\nStable: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))","markdownDescription":"Whether to use colored output or not.\n\nStable: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))","x-intellij-html-description":"
Whether to use colored output or not.
\n
Stable: No (tracking issue: #3385)
\n","default":"Auto","enum":["Auto","Always","Never"]},"combine_control_expr":{"type":"boolean","description":"Combine control expressions with function calls.\n\nStable: No (tracking issue: [#3369](https://github.com/rust-lang/rustfmt/issues/3369))\n\n\n#### `true` (default):\n\n```rust\nfn example() {\n    // If\n    foo!(if x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // IfLet\n    foo!(if let Some(..) = x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // While\n    foo!(while x {\n        foo();\n        bar();\n    });\n\n    // WhileLet\n    foo!(while let Some(..) = x {\n        foo();\n        bar();\n    });\n\n    // ForLoop\n    foo!(for x in y {\n        foo();\n        bar();\n    });\n\n    // Loop\n    foo!(loop {\n        foo();\n        bar();\n    });\n}\n```\n\n#### `false`:\n\n```rust\nfn example() {\n    // If\n    foo!(\n        if x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // IfLet\n    foo!(\n        if let Some(..) = x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // While\n    foo!(\n        while x {\n            foo();\n            bar();\n        }\n    );\n\n    // WhileLet\n    foo!(\n        while let Some(..) = x {\n            foo();\n            bar();\n        }\n    );\n\n    // ForLoop\n    foo!(\n        for x in y {\n            foo();\n            bar();\n        }\n    );\n\n    // Loop\n    foo!(\n        loop {\n            foo();\n            bar();\n        }\n    );\n}\n```","markdownDescription":"Combine control expressions with function calls.\n\nStable: No (tracking issue: [#3369](https://github.com/rust-lang/rustfmt/issues/3369))\n\n\n#### `true` (default):\n\n```rust\nfn example() {\n    // If\n    foo!(if x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // IfLet\n    foo!(if let Some(..) = x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // While\n    foo!(while x {\n        foo();\n        bar();\n    });\n\n    // WhileLet\n    foo!(while let Some(..) = x {\n        foo();\n        bar();\n    });\n\n    // ForLoop\n    foo!(for x in y {\n        foo();\n        bar();\n    });\n\n    // Loop\n    foo!(loop {\n        foo();\n        bar();\n    });\n}\n```\n\n#### `false`:\n\n```rust\nfn example() {\n    // If\n    foo!(\n        if x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // IfLet\n    foo!(\n        if let Some(..) = x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // While\n    foo!(\n        while x {\n            foo();\n            bar();\n        }\n    );\n\n    // WhileLet\n    foo!(\n        while let Some(..) = x {\n            foo();\n            bar();\n        }\n    );\n\n    // ForLoop\n    foo!(\n        for x in y {\n            foo();\n            bar();\n        }\n    );\n\n    // Loop\n    foo!(\n        loop {\n            foo();\n            bar();\n        }\n    );\n}\n```","x-intellij-html-description":"
Combine control expressions with function calls.
\n
Stable: No (tracking issue: #3369)
\n
true (default):
\n
fn example() {\n    // If\n    foo!(if x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // IfLet\n    foo!(if let Some(..) = x {\n        foo();\n    } else {\n        bar();\n    });\n\n    // While\n    foo!(while x {\n        foo();\n        bar();\n    });\n\n    // WhileLet\n    foo!(while let Some(..) = x {\n        foo();\n        bar();\n    });\n\n    // ForLoop\n    foo!(for x in y {\n        foo();\n        bar();\n    });\n\n    // Loop\n    foo!(loop {\n        foo();\n        bar();\n    });\n}\n
\n
false:
\n
fn example() {\n    // If\n    foo!(\n        if x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // IfLet\n    foo!(\n        if let Some(..) = x {\n            foo();\n        } else {\n            bar();\n        }\n    );\n\n    // While\n    foo!(\n        while x {\n            foo();\n            bar();\n        }\n    );\n\n    // WhileLet\n    foo!(\n        while let Some(..) = x {\n            foo();\n            bar();\n        }\n    );\n\n    // ForLoop\n    foo!(\n        for x in y {\n            foo();\n            bar();\n        }\n    );\n\n    // Loop\n    foo!(\n        loop {\n            foo();\n            bar();\n        }\n    );\n}\n
\n","default":true},"comment_width":{"type":"integer","description":"Maximum length of comments. No effect unless `wrap_comments = true`.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))\n\n**Note:** A value of `0` results in `wrap_comments` being applied regardless of a line's width.\n\n#### `80` (default; comments shorter than `comment_width`):\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n```\n\n#### `60` (comments longer than `comment_width`):\n```rust\n// Lorem ipsum dolor sit amet,\n// consectetur adipiscing elit.\n```\n\nSee also `wrap_comments`.","markdownDescription":"Maximum length of comments. No effect unless `wrap_comments = true`.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))\n\n**Note:** A value of `0` results in `wrap_comments` being applied regardless of a line's width.\n\n#### `80` (default; comments shorter than `comment_width`):\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n```\n\n#### `60` (comments longer than `comment_width`):\n```rust\n// Lorem ipsum dolor sit amet,\n// consectetur adipiscing elit.\n```\n\nSee also `wrap_comments`.","x-intellij-html-description":"
Maximum length of comments. No effect unless wrap_comments = true.
\n
Possible values: any positive integer
\n
Stable: No (tracking issue: #3349)
\n
Note: A value of 0 results in wrap_comments being applied regardless of a line's width.
\n
80 (default; comments shorter than comment_width):
\n
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n
\n
60 (comments longer than comment_width):
\n
// Lorem ipsum dolor sit amet,\n// consectetur adipiscing elit.\n
\n
See also wrap_comments.
\n","default":80},"condense_wildcard_suffixes":{"type":"boolean","description":"Replace strings of _ wildcards by a single .. in tuple patterns\n\nStable: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let (lorem, ipsum, _, _) = (1, 2, 3, 4);\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n```","markdownDescription":"Replace strings of _ wildcards by a single .. in tuple patterns\n\nStable: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let (lorem, ipsum, _, _) = (1, 2, 3, 4);\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n```","x-intellij-html-description":"
Replace strings of _ wildcards by a single .. in tuple patterns
\n
Stable: No (tracking issue: #3384)
\n
false (default):
\n
fn main() {\n    let (lorem, ipsum, _, _) = (1, 2, 3, 4);\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n
\n
true:
\n
fn main() {\n    let (lorem, ipsum, ..) = (1, 2, 3, 4);\n}\n
\n","default":false},"control_brace_style":{"type":"string","description":"Brace style for control flow constructs\n\nStable: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))\n\n\n#### `\"AlwaysSameLine\"` (default):\n\n```rust\nfn main() {\n    if lorem {\n        println!(\"ipsum!\");\n    } else {\n        println!(\"dolor!\");\n    }\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nfn main() {\n    if lorem\n    {\n        println!(\"ipsum!\");\n    }\n    else\n    {\n        println!(\"dolor!\");\n    }\n}\n```\n\n#### `\"ClosingNextLine\"`:\n\n```rust\nfn main() {\n    if lorem {\n        println!(\"ipsum!\");\n    }\n    else {\n        println!(\"dolor!\");\n    }\n}\n```","markdownDescription":"Brace style for control flow constructs\n\nStable: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))\n\n\n#### `\"AlwaysSameLine\"` (default):\n\n```rust\nfn main() {\n    if lorem {\n        println!(\"ipsum!\");\n    } else {\n        println!(\"dolor!\");\n    }\n}\n```\n\n#### `\"AlwaysNextLine\"`:\n\n```rust\nfn main() {\n    if lorem\n    {\n        println!(\"ipsum!\");\n    }\n    else\n    {\n        println!(\"dolor!\");\n    }\n}\n```\n\n#### `\"ClosingNextLine\"`:\n\n```rust\nfn main() {\n    if lorem {\n        println!(\"ipsum!\");\n    }\n    else {\n        println!(\"dolor!\");\n    }\n}\n```","x-intellij-html-description":"
Brace style for control flow constructs
\n
Stable: No (tracking issue: #3377)
\n
"AlwaysSameLine" (default):
\n
fn main() {\n    if lorem {\n        println!("ipsum!");\n    } else {\n        println!("dolor!");\n    }\n}\n
\n
"AlwaysNextLine":
\n
fn main() {\n    if lorem\n    {\n        println!("ipsum!");\n    }\n    else\n    {\n        println!("dolor!");\n    }\n}\n
\n
"ClosingNextLine":
\n
fn main() {\n    if lorem {\n        println!("ipsum!");\n    }\n    else {\n        println!("dolor!");\n    }\n}\n
\n","default":"AlwaysSameLine","enum":["AlwaysNextLine","AlwaysSameLine","ClosingNextLine"]},"disable_all_formatting":{"type":"boolean","description":"Don't reformat anything.\n\nNote 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.\n\nStable: Yes","markdownDescription":"Don't reformat anything.\n\nNote 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.\n\nStable: Yes","x-intellij-html-description":"
Don't reformat anything.
\n
Note that this option may be soft-deprecated in the future once the ignore option is stabilized. Nightly toolchain users are encouraged to use ignore instead when possible.
\n
Stable: Yes
\n","default":false},"edition":{"type":"string","description":"Specifies which edition is used by the parser.\n\nStable: Yes\n\nRustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed\nthrough the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified\nin your config file:\n\n```toml\nedition = \"2018\"\n```","markdownDescription":"Specifies which edition is used by the parser.\n\nStable: Yes\n\nRustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed\nthrough the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified\nin your config file:\n\n```toml\nedition = \"2018\"\n```","x-intellij-html-description":"
Specifies which edition is used by the parser.
\n
Stable: Yes
\n
Rustfmt is able to pick up the edition used by reading the Cargo.toml file if executed\nthrough the Cargo's formatting tool cargo fmt. Otherwise, the edition needs to be specified\nin your config file:
\n
edition = "2018"\n
\n","default":"2015","enum":["2015","2018","2021","2024"]},"empty_item_single_line":{"type":"boolean","description":"Put empty-body functions and impls on a single line\n\nStable: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))\n\n\n#### `true` (default):\n\n```rust\nfn lorem() {}\n\nimpl Lorem {}\n```\n\n#### `false`:\n\n```rust\nfn lorem() {\n}\n\nimpl Lorem {\n}\n```\n\nSee also `brace_style`, `control_brace_style`.","markdownDescription":"Put empty-body functions and impls on a single line\n\nStable: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))\n\n\n#### `true` (default):\n\n```rust\nfn lorem() {}\n\nimpl Lorem {}\n```\n\n#### `false`:\n\n```rust\nfn lorem() {\n}\n\nimpl Lorem {\n}\n```\n\nSee also `brace_style`, `control_brace_style`.","x-intellij-html-description":"
Put empty-body functions and impls on a single line
\n
Stable: No (tracking issue: #3356)
\n
true (default):
\n
fn lorem() {}\n\nimpl Lorem {}\n
\n
false:
\n
fn lorem() {\n}\n\nimpl Lorem {\n}\n
\n
See also brace_style, control_brace_style.
\n","default":true},"enum_discrim_align_threshold":{"type":"integer","description":"The maximum length of enum variant having discriminant, that gets vertically aligned with others.\nVariants without discriminants would be ignored for the purpose of alignment.\n\nNote that this is not how much whitespace is inserted, but instead the longest variant name that\ndoesn't get ignored when aligning.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))\n\n\n#### `0` (default):\n\n```rust\nenum Foo {\n    A = 0,\n    Bb = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 71,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n```\n\n#### `20`:\n\n```rust\nenum Foo {\n    A   = 0,\n    Bb  = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 2,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n```","markdownDescription":"The maximum length of enum variant having discriminant, that gets vertically aligned with others.\nVariants without discriminants would be ignored for the purpose of alignment.\n\nNote that this is not how much whitespace is inserted, but instead the longest variant name that\ndoesn't get ignored when aligning.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))\n\n\n#### `0` (default):\n\n```rust\nenum Foo {\n    A = 0,\n    Bb = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 71,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n```\n\n#### `20`:\n\n```rust\nenum Foo {\n    A   = 0,\n    Bb  = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 2,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n```","x-intellij-html-description":"
The maximum length of enum variant having discriminant, that gets vertically aligned with others.\nVariants without discriminants would be ignored for the purpose of alignment.
\n
Note that this is not how much whitespace is inserted, but instead the longest variant name that\ndoesn't get ignored when aligning.
\n
Possible values: any positive integer
\n
Stable: No (tracking issue: #3372)
\n
0 (default):
\n
enum Foo {\n    A = 0,\n    Bb = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 71,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n
\n
20:
\n
enum Foo {\n    A   = 0,\n    Bb  = 1,\n    RandomLongVariantGoesHere = 10,\n    Ccc = 2,\n}\n\nenum Bar {\n    VeryLongVariantNameHereA = 0,\n    VeryLongVariantNameHereBb = 1,\n    VeryLongVariantNameHereCcc = 2,\n}\n
\n","default":0},"error_on_line_overflow":{"type":"boolean","description":"Error if Rustfmt is unable to get all lines within `max_width`, except for comments and string\nliterals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by\nrefactoring your code to avoid long/complex expressions, usually by extracting a local variable or\nusing a shorter name.\n\nStable: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))\n\nSee also `max_width`.","markdownDescription":"Error if Rustfmt is unable to get all lines within `max_width`, except for comments and string\nliterals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by\nrefactoring your code to avoid long/complex expressions, usually by extracting a local variable or\nusing a shorter name.\n\nStable: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))\n\nSee also `max_width`.","x-intellij-html-description":"
Error if Rustfmt is unable to get all lines within max_width, except for comments and string\nliterals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by\nrefactoring your code to avoid long/complex expressions, usually by extracting a local variable or\nusing a shorter name.
\n
Stable: No (tracking issue: #3391)
\n
See also max_width.
\n","default":false},"error_on_unformatted":{"type":"boolean","description":"Error if unable to get comments or string literals within `max_width`, or they are left with\ntrailing whitespaces.\n\nStable: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))","markdownDescription":"Error if unable to get comments or string literals within `max_width`, or they are left with\ntrailing whitespaces.\n\nStable: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))","x-intellij-html-description":"
Error if unable to get comments or string literals within max_width, or they are left with\ntrailing whitespaces.
\n
Stable: No (tracking issue: #3392)
\n","default":false},"fn_args_layout":{"type":"string","description":"This option is deprecated and has been renamed to `fn_params_layout` to better communicate that\nit affects the layout of parameters in function signatures.\n\nStable: Yes\n\n\n#### `\"Tall\"` (default):\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Vertical\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\nSee also `fn_params_layout`","markdownDescription":"This option is deprecated and has been renamed to `fn_params_layout` to better communicate that\nit affects the layout of parameters in function signatures.\n\nStable: Yes\n\n\n#### `\"Tall\"` (default):\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Vertical\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\nSee also `fn_params_layout`","x-intellij-html-description":"
This option is deprecated and has been renamed to fn_params_layout to better communicate that\nit affects the layout of parameters in function signatures.
\n
Stable: Yes
\n
"Tall" (default):
\n
trait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n
"Compressed":
\n
trait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n
"Vertical":
\n
trait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n
See also fn_params_layout
\n","default":"Tall","enum":["Compressed","Tall","Vertical"]},"fn_call_width":{"type":"integer","description":"Maximum width of the args of a function call before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `fn_call_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"Maximum width of the args of a function call before falling back to vertical formatting.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `fn_call_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
Maximum width of the args of a function call before falling back to vertical formatting.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for fn_call_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":60},"fn_params_layout":{"type":"string","description":"Control the layout of parameters in function signatures.\n\nStable: Yes\n\n\n#### `\"Tall\"` (default):\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Vertical\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```","markdownDescription":"Control the layout of parameters in function signatures.\n\nStable: Yes\n\n\n#### `\"Tall\"` (default):\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n```\n\n#### `\"Vertical\"`:\n\n```rust\ntrait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n```","x-intellij-html-description":"
Control the layout of parameters in function signatures.
\n
Stable: Yes
\n
"Tall" (default):
\n
trait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n
"Compressed":
\n
trait Lorem {\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);\n\n    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,\n        adipiscing: Adipiscing, elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n
"Vertical":
\n
trait Lorem {\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n    ) {\n        // body\n    }\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    );\n\n    fn lorem(\n        ipsum: Ipsum,\n        dolor: Dolor,\n        sit: Sit,\n        amet: Amet,\n        consectetur: Consectetur,\n        adipiscing: Adipiscing,\n        elit: Elit,\n    ) {\n        // body\n    }\n}\n
\n","default":"Tall","enum":["Compressed","Tall","Vertical"]},"fn_single_line":{"type":"boolean","description":"Put single-expression functions on a single line\n\nStable: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))\n\n\n#### `false` (default):\n\n```rust\nfn lorem() -> usize {\n    42\n}\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem() -> usize { 42 }\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n```\n\nSee also `control_brace_style`.","markdownDescription":"Put single-expression functions on a single line\n\nStable: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))\n\n\n#### `false` (default):\n\n```rust\nfn lorem() -> usize {\n    42\n}\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem() -> usize { 42 }\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n```\n\nSee also `control_brace_style`.","x-intellij-html-description":"
Put single-expression functions on a single line
\n
Stable: No (tracking issue: #3358)
\n
false (default):
\n
fn lorem() -> usize {\n    42\n}\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n
\n
true:
\n
fn lorem() -> usize { 42 }\n\nfn lorem() -> usize {\n    let ipsum = 42;\n    ipsum\n}\n
\n
See also control_brace_style.
\n","default":false},"force_explicit_abi":{"type":"boolean","description":"Always print the abi for extern items\n\nStable: Yes\n\n**Note:** Non-\"C\" ABIs are always printed. If `false` then \"C\" is removed.\n\n#### `true` (default):\n\n```rust\nextern \"C\" {\n    pub static lorem: c_int;\n}\n```\n\n#### `false`:\n\n```rust\nextern {\n    pub static lorem: c_int;\n}\n```","markdownDescription":"Always print the abi for extern items\n\nStable: Yes\n\n**Note:** Non-\"C\" ABIs are always printed. If `false` then \"C\" is removed.\n\n#### `true` (default):\n\n```rust\nextern \"C\" {\n    pub static lorem: c_int;\n}\n```\n\n#### `false`:\n\n```rust\nextern {\n    pub static lorem: c_int;\n}\n```","x-intellij-html-description":"
Always print the abi for extern items
\n
Stable: Yes
\n
Note: Non-"C" ABIs are always printed. If false then "C" is removed.
\n
true (default):
\n
extern "C" {\n    pub static lorem: c_int;\n}\n
\n
false:
\n
extern {\n    pub static lorem: c_int;\n}\n
\n","default":true},"force_multiline_blocks":{"type":"boolean","description":"Force multiline closure and match arm bodies to be wrapped in a block\n\nStable: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    result.and_then(|maybe_value| match maybe_value {\n        None => foo(),\n        Some(value) => bar(),\n    });\n\n    match lorem {\n        None => |ipsum| {\n            println!(\"Hello World\");\n        },\n        Some(dolor) => foo(),\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    result.and_then(|maybe_value| {\n        match maybe_value {\n            None => foo(),\n            Some(value) => bar(),\n        }\n    });\n\n    match lorem {\n        None => {\n            |ipsum| {\n                println!(\"Hello World\");\n            }\n        }\n        Some(dolor) => foo(),\n    }\n}\n```","markdownDescription":"Force multiline closure and match arm bodies to be wrapped in a block\n\nStable: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    result.and_then(|maybe_value| match maybe_value {\n        None => foo(),\n        Some(value) => bar(),\n    });\n\n    match lorem {\n        None => |ipsum| {\n            println!(\"Hello World\");\n        },\n        Some(dolor) => foo(),\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    result.and_then(|maybe_value| {\n        match maybe_value {\n            None => foo(),\n            Some(value) => bar(),\n        }\n    });\n\n    match lorem {\n        None => {\n            |ipsum| {\n                println!(\"Hello World\");\n            }\n        }\n        Some(dolor) => foo(),\n    }\n}\n```","x-intellij-html-description":"
Force multiline closure and match arm bodies to be wrapped in a block
\n
Stable: No (tracking issue: #3374)
\n
false (default):
\n
fn main() {\n    result.and_then(|maybe_value| match maybe_value {\n        None => foo(),\n        Some(value) => bar(),\n    });\n\n    match lorem {\n        None => |ipsum| {\n            println!("Hello World");\n        },\n        Some(dolor) => foo(),\n    }\n}\n
\n
true:
\n
fn main() {\n    result.and_then(|maybe_value| {\n        match maybe_value {\n            None => foo(),\n            Some(value) => bar(),\n        }\n    });\n\n    match lorem {\n        None => {\n            |ipsum| {\n                println!("Hello World");\n            }\n        }\n        Some(dolor) => foo(),\n    }\n}\n
\n","default":false},"format_code_in_doc_comments":{"type":"boolean","description":"Format code snippet included in doc comments.\n\nStable: No (tracking issue: [#3348](https://github.com/rust-lang/rustfmt/issues/3348))\n\n\n#### `false` (default):\n\n```rust\n/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five=5;\n///\n/// assert_eq!(\n///     6,\n///     add_one(5)\n/// );\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n```\n\n#### `true`\n\n```rust\n/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five = 5;\n///\n/// assert_eq!(6, add_one(5));\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n```","markdownDescription":"Format code snippet included in doc comments.\n\nStable: No (tracking issue: [#3348](https://github.com/rust-lang/rustfmt/issues/3348))\n\n\n#### `false` (default):\n\n```rust\n/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five=5;\n///\n/// assert_eq!(\n///     6,\n///     add_one(5)\n/// );\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n```\n\n#### `true`\n\n```rust\n/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five = 5;\n///\n/// assert_eq!(6, add_one(5));\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n```","x-intellij-html-description":"
Format code snippet included in doc comments.
\n
Stable: No (tracking issue: #3348)
\n
false (default):
\n
/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five=5;\n///\n/// assert_eq!(\n///     6,\n///     add_one(5)\n/// );\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n
\n
true
\n
/// Adds one to the number given.\n///\n/// # Examples\n///\n/// ```rust\n/// let five = 5;\n///\n/// assert_eq!(6, add_one(5));\n/// # fn add_one(x: i32) -> i32 {\n/// #     x + 1\n/// # }\n/// ```\nfn add_one(x: i32) -> i32 {\n    x + 1\n}\n
\n","default":false},"doc_comment_code_block_width":{"type":"integer","description":"Max width for code snippets included in doc comments. Only used if `format_code_in_doc_comments` is true.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))","markdownDescription":"Max width for code snippets included in doc comments. Only used if `format_code_in_doc_comments` is true.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))","x-intellij-html-description":"
Max width for code snippets included in doc comments. Only used if format_code_in_doc_comments is true.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: No (tracking issue: #5359)
\n","default":100},"format_generated_files":{"type":"boolean","description":"Format generated files. A file is considered generated if any of the first several lines contain a `@generated` comment marker. The number of lines to check is configured by `generated_marker_line_search_limit`.\n\nBy default, generated files are reformatted, i. e. `@generated` marker is ignored.\nThis option is currently ignored for stdin (`@generated` in stdin is ignored.)\n\nStable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))","markdownDescription":"Format generated files. A file is considered generated if any of the first several lines contain a `@generated` comment marker. The number of lines to check is configured by `generated_marker_line_search_limit`.\n\nBy default, generated files are reformatted, i. e. `@generated` marker is ignored.\nThis option is currently ignored for stdin (`@generated` in stdin is ignored.)\n\nStable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))","x-intellij-html-description":"
Format generated files. A file is considered generated if any of the first several lines contain a @generated comment marker. The number of lines to check is configured by generated_marker_line_search_limit.
\n
By default, generated files are reformatted, i. e. @generated marker is ignored.\nThis option is currently ignored for stdin (@generated in stdin is ignored.)
\n
Stable: No (tracking issue: #5080)
\n","default":true},"generated_marker_line_search_limit":{"type":"integer","description":"Number of lines to check for a `@generated` pragma header, starting from the top of the file. Setting this value to `0` will treat all files as non-generated. When`format_generated_files` is `true`, this option has no effect.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))\n\nSee also [format_generated_files](#format_generated_files) link here.","markdownDescription":"Number of lines to check for a `@generated` pragma header, starting from the top of the file. Setting this value to `0` will treat all files as non-generated. When`format_generated_files` is `true`, this option has no effect.\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))\n\nSee also [format_generated_files](#format_generated_files) link here.","x-intellij-html-description":"
Number of lines to check for a @generated pragma header, starting from the top of the file. Setting this value to 0 will treat all files as non-generated. Whenformat_generated_files is true, this option has no effect.
\n
Possible values: any positive integer
\n
Stable: No (tracking issue: #5080)
\n
See also format_generated_files link here.
\n","default":5},"format_macro_matchers":{"type":"boolean","description":"Format the metavariable matching patterns in macros.\n\nStable: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))\n\n\n#### `false` (default):\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\n#### `true`:\n\n```rust\nmacro_rules! foo {\n    ($a:ident : $b:ty) => {\n        $a(42): $b;\n    };\n    ($a:ident $b:ident $c:ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\nSee also `format_macro_bodies`.","markdownDescription":"Format the metavariable matching patterns in macros.\n\nStable: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))\n\n\n#### `false` (default):\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\n#### `true`:\n\n```rust\nmacro_rules! foo {\n    ($a:ident : $b:ty) => {\n        $a(42): $b;\n    };\n    ($a:ident $b:ident $c:ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\nSee also `format_macro_bodies`.","x-intellij-html-description":"
Format the metavariable matching patterns in macros.
\n
Stable: No (tracking issue: #3354)
\n
false (default):
\n
macro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n
\n
true:
\n
macro_rules! foo {\n    ($a:ident : $b:ty) => {\n        $a(42): $b;\n    };\n    ($a:ident $b:ident $c:ident) => {\n        $a = $b + $c;\n    };\n}\n
\n
See also format_macro_bodies.
\n","default":false},"format_macro_bodies":{"type":"boolean","description":"Format the bodies of declarative macro definitions.\n\nStable: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))\n\n\n#### `true` (default):\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\n#### `false`:\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => { $a(42): $b; };\n    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };\n}\n```\n\nSee also `format_macro_matchers`.","markdownDescription":"Format the bodies of declarative macro definitions.\n\nStable: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))\n\n\n#### `true` (default):\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n```\n\n#### `false`:\n\n```rust\nmacro_rules! foo {\n    ($a: ident : $b: ty) => { $a(42): $b; };\n    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };\n}\n```\n\nSee also `format_macro_matchers`.","x-intellij-html-description":"
Format the bodies of declarative macro definitions.
\n
Stable: No (tracking issue: #3355)
\n
true (default):
\n
macro_rules! foo {\n    ($a: ident : $b: ty) => {\n        $a(42): $b;\n    };\n    ($a: ident $b: ident $c: ident) => {\n        $a = $b + $c;\n    };\n}\n
\n
false:
\n
macro_rules! foo {\n    ($a: ident : $b: ty) => { $a(42): $b; };\n    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };\n}\n
\n
See also format_macro_matchers.
\n","default":true},"skip_macro_invocations":{"description":"Skip formatting the bodies of macro invocations with the following names.\n\nrustfmt will not format any macro invocation for macros with names set in this list.\nIncluding the special value \"*\" will prevent any macro invocations from being formatted.\n\nNote: This option does not have any impact on how rustfmt formats macro definitions.\n\nPossible values: a list of macro name idents, `[\"name_0\", \"name_1\", ..., \"*\"]`\n\nStable: No (tracking issue: [#5346](https://github.com/rust-lang/rustfmt/issues/5346))\n\n\n#### `[]` (default):\n\nrustfmt will follow its standard approach to formatting macro invocations.\n\nNo 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).\n\n```rust\nlorem!(\n    const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n```\n\n#### `[\"lorem\"]`:\n\nThe named macro invocations will be skipped.\n\n```rust\nlorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n```\n\n#### `[\"*\"]`:\n\nThe special selector `*` will skip all macro invocations.\n\n```rust\nlorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n        const _: u8 = 0;\n);\n```","markdownDescription":"Skip formatting the bodies of macro invocations with the following names.\n\nrustfmt will not format any macro invocation for macros with names set in this list.\nIncluding the special value \"*\" will prevent any macro invocations from being formatted.\n\nNote: This option does not have any impact on how rustfmt formats macro definitions.\n\nPossible values: a list of macro name idents, `[\"name_0\", \"name_1\", ..., \"*\"]`\n\nStable: No (tracking issue: [#5346](https://github.com/rust-lang/rustfmt/issues/5346))\n\n\n#### `[]` (default):\n\nrustfmt will follow its standard approach to formatting macro invocations.\n\nNo 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).\n\n```rust\nlorem!(\n    const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n```\n\n#### `[\"lorem\"]`:\n\nThe named macro invocations will be skipped.\n\n```rust\nlorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n```\n\n#### `[\"*\"]`:\n\nThe special selector `*` will skip all macro invocations.\n\n```rust\nlorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n        const _: u8 = 0;\n);\n```","x-intellij-html-description":"
Skip formatting the bodies of macro invocations with the following names.
\n
rustfmt will not format any macro invocation for macros with names set in this list.\nIncluding the special value "*" will prevent any macro invocations from being formatted.
\n
Note: This option does not have any impact on how rustfmt formats macro definitions.
\n
Possible values: a list of macro name idents, ["name_0", "name_1", ..., "*"]
\n
Stable: No (tracking issue: #5346)
\n
[] (default):
\n
rustfmt will follow its standard approach to formatting macro invocations.
\n
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.
\n
lorem!(\n    const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n
\n
["lorem"]:
\n
The named macro invocations will be skipped.
\n
lorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n    const _: u8 = 0;\n);\n
\n
["*"]:
\n
The special selector * will skip all macro invocations.
\n
lorem!(\n        const _: u8 = 0;\n);\n\nipsum!(\n        const _: u8 = 0;\n);\n
\n","default":[]},"format_strings":{"type":"boolean","description":"Format string literals where necessary\n\nStable: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = \"ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing\";\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = \"ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \\\n                 consectetur adipiscing\";\n}\n```\n\nSee also `max_width`.","markdownDescription":"Format string literals where necessary\n\nStable: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = \"ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing\";\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = \"ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \\\n                 consectetur adipiscing\";\n}\n```\n\nSee also `max_width`.","x-intellij-html-description":"
Format string literals where necessary
\n
Stable: No (tracking issue: #3353)
\n
false (default):
\n
fn main() {\n    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing";\n}\n
\n
true:
\n
fn main() {\n    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \\\n                 consectetur adipiscing";\n}\n
\n
See also max_width.
\n","default":false},"hard_tabs":{"type":"boolean","description":"Use tab characters for indentation, spaces for alignment\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn lorem() -> usize {\n    42 // spaces before 42\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem() -> usize {\n\t42 // tabs before 42\n}\n```\n\nSee also: `tab_spaces`.","markdownDescription":"Use tab characters for indentation, spaces for alignment\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn lorem() -> usize {\n    42 // spaces before 42\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem() -> usize {\n\t42 // tabs before 42\n}\n```\n\nSee also: `tab_spaces`.","x-intellij-html-description":"
Use tab characters for indentation, spaces for alignment
\n
Stable: Yes
\n
false (default):
\n
fn lorem() -> usize {\n    42 // spaces before 42\n}\n
\n
true:
\n
fn lorem() -> usize {\n\t42 // tabs before 42\n}\n
\n
See also: tab_spaces.
\n","default":false},"hex_literal_case":{"type":"string","description":"Control the case of the letters in hexadecimal literal values\n\nStable: No (tracking issue: [#5081](https://github.com/rust-lang/rustfmt/issues/5081))","markdownDescription":"Control the case of the letters in hexadecimal literal values\n\nStable: No (tracking issue: [#5081](https://github.com/rust-lang/rustfmt/issues/5081))","x-intellij-html-description":"
Control the case of the letters in hexadecimal literal values
\n
Stable: No (tracking issue: #5081)
\n","default":"Preserve","enum":["Preserve","Upper","Lower"]},"hide_parse_errors":{"type":"boolean","description":"This option is deprecated and has been renamed to `show_parse_errors` to avoid confusion around the double negative default of `hide_parse_errors=false`.\n\nStable: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))","markdownDescription":"This option is deprecated and has been renamed to `show_parse_errors` to avoid confusion around the double negative default of `hide_parse_errors=false`.\n\nStable: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))","x-intellij-html-description":"
This option is deprecated and has been renamed to show_parse_errors to avoid confusion around the double negative default of hide_parse_errors=false.
\n
Stable: No (tracking issue: #3390)
\n","default":false},"show_parse_errors":{"type":"boolean","description":"Show parse errors if the parser failed to parse files.\n\nStable: No (tracking issue: [#5977](https://github.com/rust-lang/rustfmt/issues/5977))","markdownDescription":"Show parse errors if the parser failed to parse files.\n\nStable: No (tracking issue: [#5977](https://github.com/rust-lang/rustfmt/issues/5977))","x-intellij-html-description":"
Show parse errors if the parser failed to parse files.
\n
Stable: No (tracking issue: #5977)
\n","default":true},"ignore":{"description":"Skip formatting files and directories that match the specified pattern.\nThe 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.\n\nDefault value: format every file\n\nPossible values: See an example below\n\nStable: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395))\n\n\n### Example\n\nIf you want to ignore specific files, put the following to your config file:\n\n```toml\nignore = [\n    \"src/types.rs\",\n    \"src/foo/bar.rs\",\n]\n```\n\nIf you want to ignore every file under `examples/`, put the following to your config file:\n\n```toml\nignore = [\n    \"examples\",\n]\n```\n\nIf you want to ignore every file under the directory where you put your rustfmt.toml:\n\n```toml\nignore = [\"/\"]\n```\n\nIf you want to allow specific paths that would otherwise be ignored, prefix those paths with a `!`:\n\n```toml\nignore = [\"bar_dir/*\", \"!bar_dir/*/what.rs\"]\n```\n\nIn this case, all files under `bar_dir` will be ignored, except files like `bar_dir/sub/what.rs`\nor `bar_dir/another/what.rs`.","markdownDescription":"Skip formatting files and directories that match the specified pattern.\nThe 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.\n\nDefault value: format every file\n\nPossible values: See an example below\n\nStable: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395))\n\n\n### Example\n\nIf you want to ignore specific files, put the following to your config file:\n\n```toml\nignore = [\n    \"src/types.rs\",\n    \"src/foo/bar.rs\",\n]\n```\n\nIf you want to ignore every file under `examples/`, put the following to your config file:\n\n```toml\nignore = [\n    \"examples\",\n]\n```\n\nIf you want to ignore every file under the directory where you put your rustfmt.toml:\n\n```toml\nignore = [\"/\"]\n```\n\nIf you want to allow specific paths that would otherwise be ignored, prefix those paths with a `!`:\n\n```toml\nignore = [\"bar_dir/*\", \"!bar_dir/*/what.rs\"]\n```\n\nIn this case, all files under `bar_dir` will be ignored, except files like `bar_dir/sub/what.rs`\nor `bar_dir/another/what.rs`.","x-intellij-html-description":"
Skip formatting files and directories that match the specified pattern.\nThe pattern format is the same as .gitignore. Be sure to use Unix/forwardslash / style  paths. This path style will work on all platforms. Windows style paths with backslashes \\ are not supported.
\n
Default value: format every file
\n
Possible values: See an example below
\n
Stable: No (tracking issue: #3395)
\n
Example
\n
If you want to ignore specific files, put the following to your config file:
\n
ignore = [\n    "src/types.rs",\n    "src/foo/bar.rs",\n]\n
\n
If you want to ignore every file under examples/, put the following to your config file:
\n
ignore = [\n    "examples",\n]\n
\n
If you want to ignore every file under the directory where you put your rustfmt.toml:
\n
ignore = ["/"]\n
\n
If you want to allow specific paths that would otherwise be ignored, prefix those paths with a !:
\n
ignore = ["bar_dir/*", "!bar_dir/*/what.rs"]\n
\n
In this case, all files under bar_dir will be ignored, except files like bar_dir/sub/what.rs\nor bar_dir/another/what.rs.
\n"},"imports_indent":{"type":"string","description":"Indent style of imports\n\nStable: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))\n\n\n#### `\"Block\"` (default):\n\n```rust\nuse foo::{\n    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,\n};\n```\n\n#### `\"Visual\"`:\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};\n```\n\nSee also: `imports_layout`.","markdownDescription":"Indent style of imports\n\nStable: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))\n\n\n#### `\"Block\"` (default):\n\n```rust\nuse foo::{\n    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,\n};\n```\n\n#### `\"Visual\"`:\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};\n```\n\nSee also: `imports_layout`.","x-intellij-html-description":"
Indent style of imports
\n
Stable: No (tracking issue: #3360)
\n
"Block" (default):
\n
use foo::{\n    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,\n};\n
\n
"Visual":
\n
use foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,\n          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};\n
\n
See also: imports_layout.
\n","default":"Block","enum":["Block","Visual"]},"imports_layout":{"type":"string","description":"Item layout inside a imports block\n\nStable: No (tracking issue: [#3361](https://github.com/rust-lang/rustfmt/issues/3361))\n\n\n#### `\"Mixed\"` (default):\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee, ffffffffffffffffff,\n};\n```\n\n#### `\"Horizontal\"`:\n\n**Note**: This option forces all imports onto one line and may exceed `max_width`.\n\n```rust\nuse foo::{xxx, yyy, zzz};\n\nuse foo::{aaa, bbb, ccc, ddd, eee, fff};\n```\n\n#### `\"HorizontalVertical\"`:\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa,\n    bbbbbbbbbbbbbbbbbb,\n    cccccccccccccccccc,\n    dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee,\n    ffffffffffffffffff,\n};\n```\n\n#### `\"Vertical\"`:\n\n```rust\nuse foo::{\n    xxx,\n    yyy,\n    zzz,\n};\n\nuse foo::{\n    aaa,\n    bbb,\n    ccc,\n    ddd,\n    eee,\n    fff,\n};\n```","markdownDescription":"Item layout inside a imports block\n\nStable: No (tracking issue: [#3361](https://github.com/rust-lang/rustfmt/issues/3361))\n\n\n#### `\"Mixed\"` (default):\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee, ffffffffffffffffff,\n};\n```\n\n#### `\"Horizontal\"`:\n\n**Note**: This option forces all imports onto one line and may exceed `max_width`.\n\n```rust\nuse foo::{xxx, yyy, zzz};\n\nuse foo::{aaa, bbb, ccc, ddd, eee, fff};\n```\n\n#### `\"HorizontalVertical\"`:\n\n```rust\nuse foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa,\n    bbbbbbbbbbbbbbbbbb,\n    cccccccccccccccccc,\n    dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee,\n    ffffffffffffffffff,\n};\n```\n\n#### `\"Vertical\"`:\n\n```rust\nuse foo::{\n    xxx,\n    yyy,\n    zzz,\n};\n\nuse foo::{\n    aaa,\n    bbb,\n    ccc,\n    ddd,\n    eee,\n    fff,\n};\n```","x-intellij-html-description":"
Item layout inside a imports block
\n
Stable: No (tracking issue: #3361)
\n
"Mixed" (default):
\n
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee, ffffffffffffffffff,\n};\n
\n
"Horizontal":
\n
Note: This option forces all imports onto one line and may exceed max_width.
\n
use foo::{xxx, yyy, zzz};\n\nuse foo::{aaa, bbb, ccc, ddd, eee, fff};\n
\n
"HorizontalVertical":
\n
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};\n\nuse foo::{\n    aaaaaaaaaaaaaaaaaa,\n    bbbbbbbbbbbbbbbbbb,\n    cccccccccccccccccc,\n    dddddddddddddddddd,\n    eeeeeeeeeeeeeeeeee,\n    ffffffffffffffffff,\n};\n
\n
"Vertical":
\n
use foo::{\n    xxx,\n    yyy,\n    zzz,\n};\n\nuse foo::{\n    aaa,\n    bbb,\n    ccc,\n    ddd,\n    eee,\n    fff,\n};\n
\n","default":"Mixed","enum":["Horizontal","HorizontalVertical","Mixed","Vertical"]},"indent_style":{"type":"string","description":"Indent on expressions or items.\n\nStable: No (tracking issue: [#3346](https://github.com/rust-lang/rustfmt/issues/3346))\n\n\n### Array\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    let lorem = vec![\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n        \"elit\",\n    ];\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    let lorem = vec![\"ipsum\",\n                     \"dolor\",\n                     \"sit\",\n                     \"amet\",\n                     \"consectetur\",\n                     \"adipiscing\",\n                     \"elit\"];\n}\n```\n\n### Control flow\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    if lorem_ipsum\n        && dolor_sit\n        && amet_consectetur\n        && lorem_sit\n        && dolor_consectetur\n        && amet_ipsum\n        && lorem_consectetur\n    {\n        // ...\n    }\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    if lorem_ipsum\n       && dolor_sit\n       && amet_consectetur\n       && lorem_sit\n       && dolor_consectetur\n       && amet_ipsum\n       && lorem_consectetur\n    {\n        // ...\n    }\n}\n```\n\nSee also: `control_brace_style`.\n\n### Function arguments\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(\n    ipsum: usize,\n    dolor: usize,\n    sit: usize,\n    amet: usize,\n    consectetur: usize,\n    adipiscing: usize,\n    elit: usize,\n) {\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(ipsum: usize,\n         dolor: usize,\n         sit: usize,\n         amet: usize,\n         consectetur: usize,\n         adipiscing: usize,\n         elit: usize) {\n    // body\n}\n```\n\n### Function calls\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    lorem(\n        \"lorem\",\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n        \"elit\",\n    );\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    lorem(\"lorem\",\n          \"ipsum\",\n          \"dolor\",\n          \"sit\",\n          \"amet\",\n          \"consectetur\",\n          \"adipiscing\",\n          \"elit\");\n}\n```\n\n### Generics\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem<\n    Ipsum: Eq = usize,\n    Dolor: Eq = usize,\n    Sit: Eq = usize,\n    Amet: Eq = usize,\n    Adipiscing: Eq = usize,\n    Consectetur: Eq = usize,\n    Elit: Eq = usize,\n>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit,\n) -> T {\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem<Ipsum: Eq = usize,\n         Dolor: Eq = usize,\n         Sit: Eq = usize,\n         Amet: Eq = usize,\n         Adipiscing: Eq = usize,\n         Consectetur: Eq = usize,\n         Elit: Eq = usize>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit)\n    -> T {\n    // body\n}\n```\n\n#### Struct\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    let lorem = Lorem { ipsum: dolor,\n                        sit: amet };\n}\n```\n\nSee also: `struct_lit_single_line`, `indent_style`.\n\n### Where predicates\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem<Ipsum, Dolor, Sit, Amet>() -> T\nwhere\n    Ipsum: Eq,\n    Dolor: Eq,\n    Sit: Eq,\n    Amet: Eq,\n{\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem<Ipsum, Dolor, Sit, Amet>() -> T\n    where Ipsum: Eq,\n          Dolor: Eq,\n          Sit: Eq,\n          Amet: Eq\n{\n    // body\n}\n```","markdownDescription":"Indent on expressions or items.\n\nStable: No (tracking issue: [#3346](https://github.com/rust-lang/rustfmt/issues/3346))\n\n\n### Array\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    let lorem = vec![\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n        \"elit\",\n    ];\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    let lorem = vec![\"ipsum\",\n                     \"dolor\",\n                     \"sit\",\n                     \"amet\",\n                     \"consectetur\",\n                     \"adipiscing\",\n                     \"elit\"];\n}\n```\n\n### Control flow\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    if lorem_ipsum\n        && dolor_sit\n        && amet_consectetur\n        && lorem_sit\n        && dolor_consectetur\n        && amet_ipsum\n        && lorem_consectetur\n    {\n        // ...\n    }\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    if lorem_ipsum\n       && dolor_sit\n       && amet_consectetur\n       && lorem_sit\n       && dolor_consectetur\n       && amet_ipsum\n       && lorem_consectetur\n    {\n        // ...\n    }\n}\n```\n\nSee also: `control_brace_style`.\n\n### Function arguments\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(\n    ipsum: usize,\n    dolor: usize,\n    sit: usize,\n    amet: usize,\n    consectetur: usize,\n    adipiscing: usize,\n    elit: usize,\n) {\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(ipsum: usize,\n         dolor: usize,\n         sit: usize,\n         amet: usize,\n         consectetur: usize,\n         adipiscing: usize,\n         elit: usize) {\n    // body\n}\n```\n\n### Function calls\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    lorem(\n        \"lorem\",\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n        \"elit\",\n    );\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    lorem(\"lorem\",\n          \"ipsum\",\n          \"dolor\",\n          \"sit\",\n          \"amet\",\n          \"consectetur\",\n          \"adipiscing\",\n          \"elit\");\n}\n```\n\n### Generics\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem<\n    Ipsum: Eq = usize,\n    Dolor: Eq = usize,\n    Sit: Eq = usize,\n    Amet: Eq = usize,\n    Adipiscing: Eq = usize,\n    Consectetur: Eq = usize,\n    Elit: Eq = usize,\n>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit,\n) -> T {\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem<Ipsum: Eq = usize,\n         Dolor: Eq = usize,\n         Sit: Eq = usize,\n         Amet: Eq = usize,\n         Adipiscing: Eq = usize,\n         Consectetur: Eq = usize,\n         Elit: Eq = usize>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit)\n    -> T {\n    // body\n}\n```\n\n#### Struct\n\n#### `\"Block\"` (default):\n\n```rust\nfn main() {\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn main() {\n    let lorem = Lorem { ipsum: dolor,\n                        sit: amet };\n}\n```\n\nSee also: `struct_lit_single_line`, `indent_style`.\n\n### Where predicates\n\n#### `\"Block\"` (default):\n\n```rust\nfn lorem<Ipsum, Dolor, Sit, Amet>() -> T\nwhere\n    Ipsum: Eq,\n    Dolor: Eq,\n    Sit: Eq,\n    Amet: Eq,\n{\n    // body\n}\n```\n\n#### `\"Visual\"`:\n\n```rust\nfn lorem<Ipsum, Dolor, Sit, Amet>() -> T\n    where Ipsum: Eq,\n          Dolor: Eq,\n          Sit: Eq,\n          Amet: Eq\n{\n    // body\n}\n```","x-intellij-html-description":"
Indent on expressions or items.
\n
Stable: No (tracking issue: #3346)
\n
Array
\n
"Block" (default):
\n
fn main() {\n    let lorem = vec![\n        "ipsum",\n        "dolor",\n        "sit",\n        "amet",\n        "consectetur",\n        "adipiscing",\n        "elit",\n    ];\n}\n
\n
"Visual":
\n
fn main() {\n    let lorem = vec!["ipsum",\n                     "dolor",\n                     "sit",\n                     "amet",\n                     "consectetur",\n                     "adipiscing",\n                     "elit"];\n}\n
\n
Control flow
\n
"Block" (default):
\n
fn main() {\n    if lorem_ipsum\n        && dolor_sit\n        && amet_consectetur\n        && lorem_sit\n        && dolor_consectetur\n        && amet_ipsum\n        && lorem_consectetur\n    {\n        // ...\n    }\n}\n
\n
"Visual":
\n
fn main() {\n    if lorem_ipsum\n       && dolor_sit\n       && amet_consectetur\n       && lorem_sit\n       && dolor_consectetur\n       && amet_ipsum\n       && lorem_consectetur\n    {\n        // ...\n    }\n}\n
\n
See also: control_brace_style.
\n
Function arguments
\n
"Block" (default):
\n
fn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(\n    ipsum: usize,\n    dolor: usize,\n    sit: usize,\n    amet: usize,\n    consectetur: usize,\n    adipiscing: usize,\n    elit: usize,\n) {\n    // body\n}\n
\n
"Visual":
\n
fn lorem() {}\n\nfn lorem(ipsum: usize) {}\n\nfn lorem(ipsum: usize,\n         dolor: usize,\n         sit: usize,\n         amet: usize,\n         consectetur: usize,\n         adipiscing: usize,\n         elit: usize) {\n    // body\n}\n
\n
Function calls
\n
"Block" (default):
\n
fn main() {\n    lorem(\n        "lorem",\n        "ipsum",\n        "dolor",\n        "sit",\n        "amet",\n        "consectetur",\n        "adipiscing",\n        "elit",\n    );\n}\n
\n
"Visual":
\n
fn main() {\n    lorem("lorem",\n          "ipsum",\n          "dolor",\n          "sit",\n          "amet",\n          "consectetur",\n          "adipiscing",\n          "elit");\n}\n
\n
Generics
\n
"Block" (default):
\n
fn lorem<\n    Ipsum: Eq = usize,\n    Dolor: Eq = usize,\n    Sit: Eq = usize,\n    Amet: Eq = usize,\n    Adipiscing: Eq = usize,\n    Consectetur: Eq = usize,\n    Elit: Eq = usize,\n>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit,\n) -> T {\n    // body\n}\n
\n
"Visual":
\n
fn lorem<Ipsum: Eq = usize,\n         Dolor: Eq = usize,\n         Sit: Eq = usize,\n         Amet: Eq = usize,\n         Adipiscing: Eq = usize,\n         Consectetur: Eq = usize,\n         Elit: Eq = usize>(\n    ipsum: Ipsum,\n    dolor: Dolor,\n    sit: Sit,\n    amet: Amet,\n    adipiscing: Adipiscing,\n    consectetur: Consectetur,\n    elit: Elit)\n    -> T {\n    // body\n}\n
\n
Struct
\n
"Block" (default):
\n
fn main() {\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n
\n
"Visual":
\n
fn main() {\n    let lorem = Lorem { ipsum: dolor,\n                        sit: amet };\n}\n
\n
See also: struct_lit_single_line, indent_style.
\n
Where predicates
\n
"Block" (default):
\n
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T\nwhere\n    Ipsum: Eq,\n    Dolor: Eq,\n    Sit: Eq,\n    Amet: Eq,\n{\n    // body\n}\n
\n
"Visual":
\n
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T\n    where Ipsum: Eq,\n          Dolor: Eq,\n          Sit: Eq,\n          Amet: Eq\n{\n    // body\n}\n
\n","default":"Block","enum":["Block","Visual"]},"inline_attribute_width":{"type":"integer","description":"Write an item and its attribute on the same line if their combined width is below a threshold\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))\n\n\n### Example\n\n#### `0` (default):\n```rust\n#[cfg(feature = \"alloc\")]\nuse core::slice;\n```\n\n#### `50`:\n```rust\n#[cfg(feature = \"alloc\")] use core::slice;\n```","markdownDescription":"Write an item and its attribute on the same line if their combined width is below a threshold\n\nPossible values: any positive integer\n\nStable: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))\n\n\n### Example\n\n#### `0` (default):\n```rust\n#[cfg(feature = \"alloc\")]\nuse core::slice;\n```\n\n#### `50`:\n```rust\n#[cfg(feature = \"alloc\")] use core::slice;\n```","x-intellij-html-description":"
Write an item and its attribute on the same line if their combined width is below a threshold
\n
Possible values: any positive integer
\n
Stable: No (tracking issue: #3343)
\n
Example
\n
0 (default):
\n
#[cfg(feature = "alloc")]\nuse core::slice;\n
\n
50:
\n
#[cfg(feature = "alloc")] use core::slice;\n
\n","default":0},"match_arm_blocks":{"type":"boolean","description":"Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the `=>` operator.\n\nThe 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 contains neither multiple statements nor line comments.\n\nStable: No (tracking issue: [#3373](https://github.com/rust-lang/rustfmt/issues/3373))\n\n\n#### `true` (default):\n\n```rust\nfn main() {\n    match lorem {\n        ipsum => {\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)\n        }\n        dolor => println!(\"{}\", sit),\n        sit => foo(\n            \"foooooooooooooooooooooooo\",\n            \"baaaaaaaaaaaaaaaaaaaaaaaarr\",\n            \"baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz\",\n            \"qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx\",\n        ),\n    }\n}\n```\n\n#### `false`:\n\n```rust\nfn main() {\n    match lorem {\n        lorem =>\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),\n        ipsum => println!(\"{}\", sit),\n        sit => foo(\n            \"foooooooooooooooooooooooo\",\n            \"baaaaaaaaaaaaaaaaaaaaaaaarr\",\n            \"baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz\",\n            \"qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx\",\n        ),\n    }\n}\n```\n\nSee also: `match_block_trailing_comma`.","markdownDescription":"Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the `=>` operator.\n\nThe 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 contains neither multiple statements nor line comments.\n\nStable: No (tracking issue: [#3373](https://github.com/rust-lang/rustfmt/issues/3373))\n\n\n#### `true` (default):\n\n```rust\nfn main() {\n    match lorem {\n        ipsum => {\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)\n        }\n        dolor => println!(\"{}\", sit),\n        sit => foo(\n            \"foooooooooooooooooooooooo\",\n            \"baaaaaaaaaaaaaaaaaaaaaaaarr\",\n            \"baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz\",\n            \"qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx\",\n        ),\n    }\n}\n```\n\n#### `false`:\n\n```rust\nfn main() {\n    match lorem {\n        lorem =>\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),\n        ipsum => println!(\"{}\", sit),\n        sit => foo(\n            \"foooooooooooooooooooooooo\",\n            \"baaaaaaaaaaaaaaaaaaaaaaaarr\",\n            \"baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz\",\n            \"qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx\",\n        ),\n    }\n}\n```\n\nSee also: `match_block_trailing_comma`.","x-intellij-html-description":"
Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the => operator.
\n
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 contains neither multiple statements nor line comments.
\n
Stable: No (tracking issue: #3373)
\n
true (default):
\n
fn main() {\n    match lorem {\n        ipsum => {\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)\n        }\n        dolor => println!("{}", sit),\n        sit => foo(\n            "foooooooooooooooooooooooo",\n            "baaaaaaaaaaaaaaaaaaaaaaaarr",\n            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",\n            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",\n        ),\n    }\n}\n
\n
false:
\n
fn main() {\n    match lorem {\n        lorem =>\n            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),\n        ipsum => println!("{}", sit),\n        sit => foo(\n            "foooooooooooooooooooooooo",\n            "baaaaaaaaaaaaaaaaaaaaaaaarr",\n            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",\n            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",\n        ),\n    }\n}\n
\n
See also: match_block_trailing_comma.
\n","default":true},"match_arm_leading_pipes":{"type":"string","description":"Controls whether to include a leading pipe on match arms\n\nStable: Yes\n\n\n#### `Never` (default):\n```rust\n// Leading pipes are removed from this:\n// fn foo() {\n//     match foo {\n//         | \"foo\" | \"bar\" => {}\n//         | \"baz\"\n//         | \"something relatively long\"\n//         | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n//         | \"qux\" => println!(\"y\"),\n//         _ => {}\n//     }\n// }\n\n// Becomes\nfn foo() {\n    match foo {\n        \"foo\" | \"bar\" => {}\n        \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        \"qux\" => println!(\"y\"),\n        _ => {}\n    }\n}\n```\n\n#### `Always`:\n```rust\n// Leading pipes are emitted on all arms of this:\n// fn foo() {\n//     match foo {\n//         \"foo\" | \"bar\" => {}\n//         \"baz\"\n//         | \"something relatively long\"\n//         | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n//         \"qux\" => println!(\"y\"),\n//         _ => {}\n//     }\n// }\n\n// Becomes:\nfn foo() {\n    match foo {\n        | \"foo\" | \"bar\" => {}\n        | \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        | \"qux\" => println!(\"y\"),\n        | _ => {}\n    }\n}\n```\n\n#### `Preserve`:\n```rust\nfn foo() {\n    match foo {\n        | \"foo\" | \"bar\" => {}\n        | \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        | \"qux\" => println!(\"y\"),\n        _ => {}\n    }\n\n    match baz {\n        \"qux\" => {}\n        \"foo\" | \"bar\" => {}\n        _ => {}\n    }\n}\n```","markdownDescription":"Controls whether to include a leading pipe on match arms\n\nStable: Yes\n\n\n#### `Never` (default):\n```rust\n// Leading pipes are removed from this:\n// fn foo() {\n//     match foo {\n//         | \"foo\" | \"bar\" => {}\n//         | \"baz\"\n//         | \"something relatively long\"\n//         | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n//         | \"qux\" => println!(\"y\"),\n//         _ => {}\n//     }\n// }\n\n// Becomes\nfn foo() {\n    match foo {\n        \"foo\" | \"bar\" => {}\n        \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        \"qux\" => println!(\"y\"),\n        _ => {}\n    }\n}\n```\n\n#### `Always`:\n```rust\n// Leading pipes are emitted on all arms of this:\n// fn foo() {\n//     match foo {\n//         \"foo\" | \"bar\" => {}\n//         \"baz\"\n//         | \"something relatively long\"\n//         | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n//         \"qux\" => println!(\"y\"),\n//         _ => {}\n//     }\n// }\n\n// Becomes:\nfn foo() {\n    match foo {\n        | \"foo\" | \"bar\" => {}\n        | \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        | \"qux\" => println!(\"y\"),\n        | _ => {}\n    }\n}\n```\n\n#### `Preserve`:\n```rust\nfn foo() {\n    match foo {\n        | \"foo\" | \"bar\" => {}\n        | \"baz\"\n        | \"something relatively long\"\n        | \"something really really really realllllllllllllly long\" => println!(\"x\"),\n        | \"qux\" => println!(\"y\"),\n        _ => {}\n    }\n\n    match baz {\n        \"qux\" => {}\n        \"foo\" | \"bar\" => {}\n        _ => {}\n    }\n}\n```","x-intellij-html-description":"
Controls whether to include a leading pipe on match arms
\n
Stable: Yes
\n
Never (default):
\n
// Leading pipes are removed from this:\n// fn foo() {\n//     match foo {\n//         | "foo" | "bar" => {}\n//         | "baz"\n//         | "something relatively long"\n//         | "something really really really realllllllllllllly long" => println!("x"),\n//         | "qux" => println!("y"),\n//         _ => {}\n//     }\n// }\n\n// Becomes\nfn foo() {\n    match foo {\n        "foo" | "bar" => {}\n        "baz"\n        | "something relatively long"\n        | "something really really really realllllllllllllly long" => println!("x"),\n        "qux" => println!("y"),\n        _ => {}\n    }\n}\n
\n
Always:
\n
// Leading pipes are emitted on all arms of this:\n// fn foo() {\n//     match foo {\n//         "foo" | "bar" => {}\n//         "baz"\n//         | "something relatively long"\n//         | "something really really really realllllllllllllly long" => println!("x"),\n//         "qux" => println!("y"),\n//         _ => {}\n//     }\n// }\n\n// Becomes:\nfn foo() {\n    match foo {\n        | "foo" | "bar" => {}\n        | "baz"\n        | "something relatively long"\n        | "something really really really realllllllllllllly long" => println!("x"),\n        | "qux" => println!("y"),\n        | _ => {}\n    }\n}\n
\n
Preserve:
\n
fn foo() {\n    match foo {\n        | "foo" | "bar" => {}\n        | "baz"\n        | "something relatively long"\n        | "something really really really realllllllllllllly long" => println!("x"),\n        | "qux" => println!("y"),\n        _ => {}\n    }\n\n    match baz {\n        "qux" => {}\n        "foo" | "bar" => {}\n        _ => {}\n    }\n}\n
\n","default":"Never","enum":["Always","Never","Preserve"]},"match_block_trailing_comma":{"type":"boolean","description":"Put a trailing comma after a block based match arm (non-block arms are not affected)\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!(\"ipsum\");\n        }\n        Lorem::Dolor => println!(\"dolor\"),\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!(\"ipsum\");\n        },\n        Lorem::Dolor => println!(\"dolor\"),\n    }\n}\n```\n\nSee also: `trailing_comma`, `match_arm_blocks`.","markdownDescription":"Put a trailing comma after a block based match arm (non-block arms are not affected)\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!(\"ipsum\");\n        }\n        Lorem::Dolor => println!(\"dolor\"),\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!(\"ipsum\");\n        },\n        Lorem::Dolor => println!(\"dolor\"),\n    }\n}\n```\n\nSee also: `trailing_comma`, `match_arm_blocks`.","x-intellij-html-description":"
Put a trailing comma after a block based match arm (non-block arms are not affected)
\n
Stable: Yes
\n
false (default):
\n
fn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!("ipsum");\n        }\n        Lorem::Dolor => println!("dolor"),\n    }\n}\n
\n
true:
\n
fn main() {\n    match lorem {\n        Lorem::Ipsum => {\n            println!("ipsum");\n        },\n        Lorem::Dolor => println!("dolor"),\n    }\n}\n
\n
See also: trailing_comma, match_arm_blocks.
\n","default":false},"max_width":{"type":"integer","description":"Maximum width of each line\n\nPossible values: any positive integer\n\nStable: Yes\n\nSee also `error_on_line_overflow`.","markdownDescription":"Maximum width of each line\n\nPossible values: any positive integer\n\nStable: Yes\n\nSee also `error_on_line_overflow`.","x-intellij-html-description":"
Maximum width of each line
\n
Possible values: any positive integer
\n
Stable: Yes
\n
See also error_on_line_overflow.
\n","default":100},"merge_derives":{"type":"boolean","description":"Merge multiple derives into a single one.\n\nStable: Yes\n\n\n#### `true` (default):\n\n```rust\n#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Foo {}\n```\n\n#### `false`:\n\n```rust\n#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Bar {}\n\n#[derive(Eq, PartialEq)]\n#[derive(Debug)]\n#[derive(Copy, Clone)]\npub enum Foo {}\n```","markdownDescription":"Merge multiple derives into a single one.\n\nStable: Yes\n\n\n#### `true` (default):\n\n```rust\n#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Foo {}\n```\n\n#### `false`:\n\n```rust\n#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Bar {}\n\n#[derive(Eq, PartialEq)]\n#[derive(Debug)]\n#[derive(Copy, Clone)]\npub enum Foo {}\n```","x-intellij-html-description":"
Merge multiple derives into a single one.
\n
Stable: Yes
\n
true (default):
\n
#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Foo {}\n
\n
false:
\n
#[derive(Eq, PartialEq, Debug, Copy, Clone)]\npub enum Bar {}\n\n#[derive(Eq, PartialEq)]\n#[derive(Debug)]\n#[derive(Copy, Clone)]\npub enum Foo {}\n
\n","default":true},"imports_granularity":{"type":"string","description":"Controls how imports are structured in `use` statements. Imports will be merged or split to the configured level of granularity.\n\nSimilar to other `import` related configuration options, this option operates within the bounds of user-defined groups of imports. See `group_imports` for more information on import groups.\n\nNote that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.\n\nStable: No (tracking issue: [#4991](https://github.com/rust-lang/rustfmt/issues/4991))\n\n\n#### `Preserve` (default):\n\nDo not change the granularity of any imports and preserve the original structure written by the developer.\n\n```rust\nuse foo::b;\nuse foo::b::{f, g};\nuse foo::{a, c, d::e};\nuse qux::{h, i};\n```\n\n#### `Crate`:\n\nMerge imports from the same crate into a single `use` statement. Conversely, imports from different crates are split into separate statements.\n\n```rust\nuse foo::{\n    a, b,\n    b::{f, g},\n    c,\n    d::e,\n};\nuse qux::{h, i};\n```\n\n#### `Module`:\n\nMerge imports from the same module into a single `use` statement. Conversely, imports from different modules are split into separate statements.\n\n```rust\nuse foo::b::{f, g};\nuse foo::d::e;\nuse foo::{a, b, c};\nuse qux::{h, i};\n```\n\n#### `Item`:\n\nFlatten imports so that each has its own `use` statement.\n\n```rust\nuse foo::a;\nuse foo::b;\nuse foo::b::f;\nuse foo::b::g;\nuse foo::c;\nuse foo::d::e;\nuse qux::h;\nuse qux::i;\n```\n\n#### `One`:\n\nMerge all imports into a single `use` statement as long as they have the same visibility.\n\n```rust\npub use foo::{x, y};\nuse {\n    bar::{\n        a,\n        b::{self, f, g},\n        c,\n        d::e,\n    },\n    qux::{h, i},\n};\n```","markdownDescription":"Controls how imports are structured in `use` statements. Imports will be merged or split to the configured level of granularity.\n\nSimilar to other `import` related configuration options, this option operates within the bounds of user-defined groups of imports. See `group_imports` for more information on import groups.\n\nNote that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.\n\nStable: No (tracking issue: [#4991](https://github.com/rust-lang/rustfmt/issues/4991))\n\n\n#### `Preserve` (default):\n\nDo not change the granularity of any imports and preserve the original structure written by the developer.\n\n```rust\nuse foo::b;\nuse foo::b::{f, g};\nuse foo::{a, c, d::e};\nuse qux::{h, i};\n```\n\n#### `Crate`:\n\nMerge imports from the same crate into a single `use` statement. Conversely, imports from different crates are split into separate statements.\n\n```rust\nuse foo::{\n    a, b,\n    b::{f, g},\n    c,\n    d::e,\n};\nuse qux::{h, i};\n```\n\n#### `Module`:\n\nMerge imports from the same module into a single `use` statement. Conversely, imports from different modules are split into separate statements.\n\n```rust\nuse foo::b::{f, g};\nuse foo::d::e;\nuse foo::{a, b, c};\nuse qux::{h, i};\n```\n\n#### `Item`:\n\nFlatten imports so that each has its own `use` statement.\n\n```rust\nuse foo::a;\nuse foo::b;\nuse foo::b::f;\nuse foo::b::g;\nuse foo::c;\nuse foo::d::e;\nuse qux::h;\nuse qux::i;\n```\n\n#### `One`:\n\nMerge all imports into a single `use` statement as long as they have the same visibility.\n\n```rust\npub use foo::{x, y};\nuse {\n    bar::{\n        a,\n        b::{self, f, g},\n        c,\n        d::e,\n    },\n    qux::{h, i},\n};\n```","x-intellij-html-description":"
Controls how imports are structured in use statements. Imports will be merged or split to the configured level of granularity.
\n
Similar to other import related configuration options, this option operates within the bounds of user-defined groups of imports. See group_imports for more information on import groups.
\n
Note that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.
\n
Stable: No (tracking issue: #4991)
\n
Preserve (default):
\n
Do not change the granularity of any imports and preserve the original structure written by the developer.
\n
use foo::b;\nuse foo::b::{f, g};\nuse foo::{a, c, d::e};\nuse qux::{h, i};\n
\n
Crate:
\n
Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.
\n
use foo::{\n    a, b,\n    b::{f, g},\n    c,\n    d::e,\n};\nuse qux::{h, i};\n
\n
Module:
\n
Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.
\n
use foo::b::{f, g};\nuse foo::d::e;\nuse foo::{a, b, c};\nuse qux::{h, i};\n
\n
Item:
\n
Flatten imports so that each has its own use statement.
\n
use foo::a;\nuse foo::b;\nuse foo::b::f;\nuse foo::b::g;\nuse foo::c;\nuse foo::d::e;\nuse qux::h;\nuse qux::i;\n
\n
One:
\n
Merge all imports into a single use statement as long as they have the same visibility.
\n
pub use foo::{x, y};\nuse {\n    bar::{\n        a,\n        b::{self, f, g},\n        c,\n        d::e,\n    },\n    qux::{h, i},\n};\n
\n","default":"Preserve","enum":["Preserve","Crate","Module","Item","One"]},"merge_imports":{"type":"string","description":"This option is deprecated. Use `imports_granularity = \"Crate\"` instead.\n\n- **Default value**: `false`\n- **Possible values**: `true`, `false`\n\n#### `false` (default):\n\n```rust\nuse foo::{a, c, d};\nuse foo::{b, g};\nuse foo::{e, f};\n```\n\n#### `true`:\n\n```rust\nuse foo::{a, b, c, d, e, f, g};\n```\n\n\n## `newline_style`\n\nUnix or Windows line endings\n\nStable: Yes\n\n\n#### `Auto` (default):\n\nThe newline style is detected automatically on a per-file basis. Files\nwith mixed line endings will be converted to the first detected line\nending style.\n\n#### `Native`\n\nLine endings will be converted to `\\r\\n` on Windows and `\\n` on all\nother platforms.\n\n#### `Unix`\n\nLine endings will be converted to `\\n`.\n\n#### `Windows`\n\nLine endings will be converted to `\\r\\n`.","markdownDescription":"This option is deprecated. Use `imports_granularity = \"Crate\"` instead.\n\n- **Default value**: `false`\n- **Possible values**: `true`, `false`\n\n#### `false` (default):\n\n```rust\nuse foo::{a, c, d};\nuse foo::{b, g};\nuse foo::{e, f};\n```\n\n#### `true`:\n\n```rust\nuse foo::{a, b, c, d, e, f, g};\n```\n\n\n## `newline_style`\n\nUnix or Windows line endings\n\nStable: Yes\n\n\n#### `Auto` (default):\n\nThe newline style is detected automatically on a per-file basis. Files\nwith mixed line endings will be converted to the first detected line\nending style.\n\n#### `Native`\n\nLine endings will be converted to `\\r\\n` on Windows and `\\n` on all\nother platforms.\n\n#### `Unix`\n\nLine endings will be converted to `\\n`.\n\n#### `Windows`\n\nLine endings will be converted to `\\r\\n`.","x-intellij-html-description":"
This option is deprecated. Use imports_granularity = "Crate" instead.
\n
\n
Default value: false
\n
Possible values: true, false
\n
\n
false (default):
\n
use foo::{a, c, d};\nuse foo::{b, g};\nuse foo::{e, f};\n
\n
true:
\n
use foo::{a, b, c, d, e, f, g};\n
\n
newline_style
\n
Unix or Windows line endings
\n
Stable: Yes
\n
Auto (default):
\n
The newline style is detected automatically on a per-file basis. Files\nwith mixed line endings will be converted to the first detected line\nending style.
\n
Native
\n
Line endings will be converted to \\r\\n on Windows and \\n on all\nother platforms.
\n
Unix
\n
Line endings will be converted to \\n.
\n
Windows
\n
Line endings will be converted to \\r\\n.
\n","default":"Auto","enum":["Auto","Native","Unix","Windows"]},"normalize_comments":{"type":"boolean","description":"Convert /* */ comments to // comments where possible\n\nStable: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))\n\n\n#### `false` (default):\n\n```rust\n// Lorem ipsum:\nfn dolor() -> usize {}\n\n/* sit amet: */\nfn adipiscing() -> usize {}\n```\n\n#### `true`:\n\n```rust\n// Lorem ipsum:\nfn dolor() -> usize {}\n\n// sit amet:\nfn adipiscing() -> usize {}\n```","markdownDescription":"Convert /* */ comments to // comments where possible\n\nStable: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))\n\n\n#### `false` (default):\n\n```rust\n// Lorem ipsum:\nfn dolor() -> usize {}\n\n/* sit amet: */\nfn adipiscing() -> usize {}\n```\n\n#### `true`:\n\n```rust\n// Lorem ipsum:\nfn dolor() -> usize {}\n\n// sit amet:\nfn adipiscing() -> usize {}\n```","x-intellij-html-description":"
Convert /* */ comments to // comments where possible
\n
Stable: No (tracking issue: #3350)
\n
false (default):
\n
// Lorem ipsum:\nfn dolor() -> usize {}\n\n/* sit amet: */\nfn adipiscing() -> usize {}\n
\n
true:
\n
// Lorem ipsum:\nfn dolor() -> usize {}\n\n// sit amet:\nfn adipiscing() -> usize {}\n
\n","default":false},"normalize_doc_attributes":{"type":"boolean","description":"Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.\n\nStable: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))\n\n\n#### `false` (default):\n\n```rust\n#![doc = \"Example documentation\"]\n\n#[doc = \"Example item documentation\"]\npub enum Bar {}\n\n/// Example item documentation\npub enum Foo {}\n```\n\n#### `true`:\n\n```rust\n//! Example documentation\n\n/// Example item documentation\npub enum Foo {}\n```","markdownDescription":"Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.\n\nStable: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))\n\n\n#### `false` (default):\n\n```rust\n#![doc = \"Example documentation\"]\n\n#[doc = \"Example item documentation\"]\npub enum Bar {}\n\n/// Example item documentation\npub enum Foo {}\n```\n\n#### `true`:\n\n```rust\n//! Example documentation\n\n/// Example item documentation\npub enum Foo {}\n```","x-intellij-html-description":"
Convert #![doc] and #[doc] attributes to //! and /// doc comments.
\n
Stable: No (tracking issue: #3351)
\n
false (default):
\n
#![doc = "Example documentation"]\n\n#[doc = "Example item documentation"]\npub enum Bar {}\n\n/// Example item documentation\npub enum Foo {}\n
\n
true:
\n
//! Example documentation\n\n/// Example item documentation\npub enum Foo {}\n
\n","default":false},"overflow_delimited_expr":{"type":"boolean","description":"When structs, slices, arrays, and block/array-like macros are used as the last\nargument in an expression list, allow them to overflow (like blocks/closures)\ninstead of being indented on a new line.\n\nStable: No (tracking issue: [#3370](https://github.com/rust-lang/rustfmt/issues/3370))\n\n\n#### `false` (default):\n\n```rust\nfn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(\n        ctx,\n        Bar {\n            x: value,\n            y: value2,\n        },\n    );\n\n    foo(\n        ctx,\n        &[\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n\n    foo(\n        ctx,\n        vec![\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n}\n```\n\n#### `true`:\n\n```rust\nfn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(ctx, Bar {\n        x: value,\n        y: value2,\n    });\n\n    foo(ctx, &[\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n\n    foo(ctx, vec![\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n}\n```","markdownDescription":"When structs, slices, arrays, and block/array-like macros are used as the last\nargument in an expression list, allow them to overflow (like blocks/closures)\ninstead of being indented on a new line.\n\nStable: No (tracking issue: [#3370](https://github.com/rust-lang/rustfmt/issues/3370))\n\n\n#### `false` (default):\n\n```rust\nfn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(\n        ctx,\n        Bar {\n            x: value,\n            y: value2,\n        },\n    );\n\n    foo(\n        ctx,\n        &[\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n\n    foo(\n        ctx,\n        vec![\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n}\n```\n\n#### `true`:\n\n```rust\nfn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(ctx, Bar {\n        x: value,\n        y: value2,\n    });\n\n    foo(ctx, &[\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n\n    foo(ctx, vec![\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n}\n```","x-intellij-html-description":"
When structs, slices, arrays, and block/array-like macros are used as the last\nargument in an expression list, allow them to overflow (like blocks/closures)\ninstead of being indented on a new line.
\n
Stable: No (tracking issue: #3370)
\n
false (default):
\n
fn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(\n        ctx,\n        Bar {\n            x: value,\n            y: value2,\n        },\n    );\n\n    foo(\n        ctx,\n        &[\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n\n    foo(\n        ctx,\n        vec![\n            MAROON_TOMATOES,\n            PURPLE_POTATOES,\n            ORGANE_ORANGES,\n            GREEN_PEARS,\n            RED_APPLES,\n        ],\n    );\n}\n
\n
true:
\n
fn example() {\n    foo(ctx, |param| {\n        action();\n        foo(param)\n    });\n\n    foo(ctx, Bar {\n        x: value,\n        y: value2,\n    });\n\n    foo(ctx, &[\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n\n    foo(ctx, vec![\n        MAROON_TOMATOES,\n        PURPLE_POTATOES,\n        ORGANE_ORANGES,\n        GREEN_PEARS,\n        RED_APPLES,\n    ]);\n}\n
\n","default":false},"remove_nested_parens":{"type":"boolean","description":"Remove nested parens.\n\nDefault value: `true`,\n\nStable: Yes\n\n\n#### `true` (default):\n```rust\nfn main() {\n    (foo());\n}\n```\n\n#### `false`:\n```rust\nfn main() {\n    (foo());\n\n    ((((foo()))));\n}\n```","markdownDescription":"Remove nested parens.\n\nDefault value: `true`,\n\nStable: Yes\n\n\n#### `true` (default):\n```rust\nfn main() {\n    (foo());\n}\n```\n\n#### `false`:\n```rust\nfn main() {\n    (foo());\n\n    ((((foo()))));\n}\n```","x-intellij-html-description":"
Remove nested parens.
\n
Default value: true,
\n
Stable: Yes
\n
true (default):
\n
fn main() {\n    (foo());\n}\n
\n
false:
\n
fn main() {\n    (foo());\n\n    ((((foo()))));\n}\n
\n"},"reorder_impl_items":{"type":"boolean","description":"Reorder impl items. `type` and `const` are put first, then macros and methods.\n\nStable: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))\n\n\n#### `false` (default)\n\n```rust\nstruct Dummy;\n\nimpl Iterator for Dummy {\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n\n    type Item = i32;\n}\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n```\n\n#### `true`\n\n```rust\nstruct Dummy;\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n```","markdownDescription":"Reorder impl items. `type` and `const` are put first, then macros and methods.\n\nStable: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))\n\n\n#### `false` (default)\n\n```rust\nstruct Dummy;\n\nimpl Iterator for Dummy {\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n\n    type Item = i32;\n}\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n```\n\n#### `true`\n\n```rust\nstruct Dummy;\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n```","x-intellij-html-description":"
Reorder impl items. type and const are put first, then macros and methods.
\n
Stable: No (tracking issue: #3363)
\n
false (default)
\n
struct Dummy;\n\nimpl Iterator for Dummy {\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n\n    type Item = i32;\n}\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n
\n
true
\n
struct Dummy;\n\nimpl Iterator for Dummy {\n    type Item = i32;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        None\n    }\n}\n
\n","default":false},"reorder_imports":{"type":"boolean","description":"Reorder import and extern crate statements alphabetically in groups (a group is\nseparated by a newline).\n\nStable: Yes\n\n\n#### `true` (default):\n\n```rust\nuse dolor;\nuse ipsum;\nuse lorem;\nuse sit;\n```\n\n#### `false`:\n\n```rust\nuse lorem;\nuse ipsum;\nuse dolor;\nuse sit;\n```","markdownDescription":"Reorder import and extern crate statements alphabetically in groups (a group is\nseparated by a newline).\n\nStable: Yes\n\n\n#### `true` (default):\n\n```rust\nuse dolor;\nuse ipsum;\nuse lorem;\nuse sit;\n```\n\n#### `false`:\n\n```rust\nuse lorem;\nuse ipsum;\nuse dolor;\nuse sit;\n```","x-intellij-html-description":"
Reorder import and extern crate statements alphabetically in groups (a group is\nseparated by a newline).
\n
Stable: Yes
\n
true (default):
\n
use dolor;\nuse ipsum;\nuse lorem;\nuse sit;\n
\n
false:
\n
use lorem;\nuse ipsum;\nuse dolor;\nuse sit;\n
\n","default":true},"group_imports":{"type":"string","description":"Controls the strategy for how consecutive imports are grouped together.\n\nControls 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.\n\nStable: No (tracking issue: [#5083](https://github.com/rust-lang/rustfmt/issues/5083))\n\nEach 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.\n\n#### `Preserve` (default):\n\nPreserve the source file's import groups.\n\n```rust\nuse super::update::convert_publish_payload;\nuse chrono::Utc;\n\nuse alloc::alloc::Layout;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\n\nuse super::schema::{Context, Payload};\nuse crate::models::Event;\nuse core::f32;\n```\n\n#### `StdExternalCrate`:\n\nDiscard existing import groups, and create three groups for:\n1. `std`, `core` and `alloc`,\n2. external crates,\n3. `self`, `super` and `crate` imports.\n\n```rust\nuse alloc::alloc::Layout;\nuse core::f32;\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\n```\n\n#### `One`:\n\nDiscard existing import groups, and create a single group for everything\n\n```rust\nuse super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\nuse alloc::alloc::Layout;\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse core::f32;\nuse juniper::{FieldError, FieldResult};\nuse std::sync::Arc;\nuse uuid::Uuid;\n```","markdownDescription":"Controls the strategy for how consecutive imports are grouped together.\n\nControls 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.\n\nStable: No (tracking issue: [#5083](https://github.com/rust-lang/rustfmt/issues/5083))\n\nEach 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.\n\n#### `Preserve` (default):\n\nPreserve the source file's import groups.\n\n```rust\nuse super::update::convert_publish_payload;\nuse chrono::Utc;\n\nuse alloc::alloc::Layout;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\n\nuse super::schema::{Context, Payload};\nuse crate::models::Event;\nuse core::f32;\n```\n\n#### `StdExternalCrate`:\n\nDiscard existing import groups, and create three groups for:\n1. `std`, `core` and `alloc`,\n2. external crates,\n3. `self`, `super` and `crate` imports.\n\n```rust\nuse alloc::alloc::Layout;\nuse core::f32;\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\n```\n\n#### `One`:\n\nDiscard existing import groups, and create a single group for everything\n\n```rust\nuse super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\nuse alloc::alloc::Layout;\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse core::f32;\nuse juniper::{FieldError, FieldResult};\nuse std::sync::Arc;\nuse uuid::Uuid;\n```","x-intellij-html-description":"
Controls the strategy for how consecutive imports are grouped together.
\n
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.
\n
Stable: No (tracking issue: #5083)
\n
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.
\n
Preserve (default):
\n
Preserve the source file's import groups.
\n
use super::update::convert_publish_payload;\nuse chrono::Utc;\n\nuse alloc::alloc::Layout;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\n\nuse super::schema::{Context, Payload};\nuse crate::models::Event;\nuse core::f32;\n
\n
StdExternalCrate:
\n
Discard existing import groups, and create three groups for:
\n
\n
std, core and alloc,
\n
external crates,
\n
self, super and crate imports.
\n
\n
use alloc::alloc::Layout;\nuse core::f32;\nuse std::sync::Arc;\n\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse juniper::{FieldError, FieldResult};\nuse uuid::Uuid;\n\nuse super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\n
\n
One:
\n
Discard existing import groups, and create a single group for everything
\n
use super::schema::{Context, Payload};\nuse super::update::convert_publish_payload;\nuse crate::models::Event;\nuse alloc::alloc::Layout;\nuse broker::database::PooledConnection;\nuse chrono::Utc;\nuse core::f32;\nuse juniper::{FieldError, FieldResult};\nuse std::sync::Arc;\nuse uuid::Uuid;\n
\n","default":"Preserve","enum":["Preserve","StdExternalCrate","One"]},"reorder_modules":{"type":"boolean","description":"Reorder `mod` declarations alphabetically in group.\n\nStable: Yes\n\n\n#### `true` (default)\n\n```rust\nmod a;\nmod b;\n\nmod dolor;\nmod ipsum;\nmod lorem;\nmod sit;\n```\n\n#### `false`\n\n```rust\nmod b;\nmod a;\n\nmod lorem;\nmod ipsum;\nmod dolor;\nmod sit;\n```\n\n**Note** `mod` with `#[macro_export]` will not be reordered since that could change the semantics\nof the original source code.","markdownDescription":"Reorder `mod` declarations alphabetically in group.\n\nStable: Yes\n\n\n#### `true` (default)\n\n```rust\nmod a;\nmod b;\n\nmod dolor;\nmod ipsum;\nmod lorem;\nmod sit;\n```\n\n#### `false`\n\n```rust\nmod b;\nmod a;\n\nmod lorem;\nmod ipsum;\nmod dolor;\nmod sit;\n```\n\n**Note** `mod` with `#[macro_export]` will not be reordered since that could change the semantics\nof the original source code.","x-intellij-html-description":"
Reorder mod declarations alphabetically in group.
\n
Stable: Yes
\n
true (default)
\n
mod a;\nmod b;\n\nmod dolor;\nmod ipsum;\nmod lorem;\nmod sit;\n
\n
false
\n
mod b;\nmod a;\n\nmod lorem;\nmod ipsum;\nmod dolor;\nmod sit;\n
\n
Note mod with #[macro_export] will not be reordered since that could change the semantics\nof the original source code.
\n","default":true},"required_version":{"description":"Require a specific version of rustfmt. If you want to make sure that the\nspecific version of rustfmt is used in your CI, use this option.\n\nPossible values: any published version (e.g. `\"0.3.8\"`)\n\nStable: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))","markdownDescription":"Require a specific version of rustfmt. If you want to make sure that the\nspecific version of rustfmt is used in your CI, use this option.\n\nPossible values: any published version (e.g. `\"0.3.8\"`)\n\nStable: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))","x-intellij-html-description":"
Require a specific version of rustfmt. If you want to make sure that the\nspecific version of rustfmt is used in your CI, use this option.
\n
Possible values: any published version (e.g. "0.3.8")
\n
Stable: No (tracking issue: #3386)
\n","default":"CARGO_PKG_VERSION"},"short_array_element_width_threshold":{"type":"integer","description":"The width threshold for an array element to be considered \"short\".\n\nThe layout of an array is dependent on the length of each of its elements. \nIf 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.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\n\n#### `10` (default):\n```rust\nfn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000,\n        0xaaaaaaaaaaaaaaaa,\n        0xbbbbbbbbbbbbbbbb,\n        0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n```\n#### `20`:\n```rust\nfn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n```\nSee also `max_width`.","markdownDescription":"The width threshold for an array element to be considered \"short\".\n\nThe layout of an array is dependent on the length of each of its elements. \nIf 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.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\n\n#### `10` (default):\n```rust\nfn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000,\n        0xaaaaaaaaaaaaaaaa,\n        0xbbbbbbbbbbbbbbbb,\n        0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n```\n#### `20`:\n```rust\nfn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n```\nSee also `max_width`.","x-intellij-html-description":"
The width threshold for an array element to be considered "short".
\n
The layout of an array is dependent on the length of each of its elements. \nIf 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.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
10 (default):
\n
fn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000,\n        0xaaaaaaaaaaaaaaaa,\n        0xbbbbbbbbbbbbbbbb,\n        0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n
\n
20:
\n
fn main() {\n    pub const FORMAT_TEST: [u64; 5] = [\n        0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,\n        0xdddddddddddddddd,\n    ];\n}\n
\n
See also max_width.
\n","default":10},"skip_children":{"type":"boolean","description":"Don't reformat out of line modules\n\nStable: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3389))","markdownDescription":"Don't reformat out of line modules\n\nStable: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3389))","x-intellij-html-description":"
Don't reformat out of line modules
\n
Stable: No (tracking issue: #3389)
\n","default":false},"single_line_if_else_max_width":{"type":"integer","description":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_if_else_max_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_if_else_max_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
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.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for single_line_if_else_max_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":50},"single_line_let_else_max_width":{"type":"integer","description":"Maximum line length for single line let-else statements.\nSee the [let-else statement section of the Rust Style Guide](https://github.com/rust-lang/rust/blob/master/src/doc/style-guide/src/statements.md#else-blocks-let-else-statements) for more details on when a let-else statement may be written on a single line.\nA value of `0` (zero) means the divergent `else` block will always be formatted over multiple lines.\nNote this occurs when `use_small_heuristics` is set to `Off`.\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_let_else_max_width` will take precedence.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\n\n#### `50` (default):\n\n```rust\nfn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n```\n\n#### `0`:\n\n```rust\nfn main() {\n    let Some(w) = opt else {\n        return Ok(());\n    };\n\n    let Some(x) = opt else {\n        return;\n    };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n```\n\n#### `100`:\n\n```rust\nfn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else { return };\n}\n```\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"Maximum line length for single line let-else statements.\nSee the [let-else statement section of the Rust Style Guide](https://github.com/rust-lang/rust/blob/master/src/doc/style-guide/src/statements.md#else-blocks-let-else-statements) for more details on when a let-else statement may be written on a single line.\nA value of `0` (zero) means the divergent `else` block will always be formatted over multiple lines.\nNote this occurs when `use_small_heuristics` is set to `Off`.\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_let_else_max_width` will take precedence.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\n\n#### `50` (default):\n\n```rust\nfn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n```\n\n#### `0`:\n\n```rust\nfn main() {\n    let Some(w) = opt else {\n        return Ok(());\n    };\n\n    let Some(x) = opt else {\n        return;\n    };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n```\n\n#### `100`:\n\n```rust\nfn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else { return };\n}\n```\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
Maximum line length for single line let-else statements.\nSee the let-else statement section of the Rust Style Guide for more details on when a let-else statement may be written on a single line.\nA value of 0 (zero) means the divergent else block will always be formatted over multiple lines.\nNote this occurs when use_small_heuristics is set to Off.
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for single_line_let_else_max_width will take precedence.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
50 (default):
\n
fn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n
\n
0:
\n
fn main() {\n    let Some(w) = opt else {\n        return Ok(());\n    };\n\n    let Some(x) = opt else {\n        return;\n    };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else {\n        return;\n    };\n}\n
\n
100:
\n
fn main() {\n    let Some(w) = opt else { return Ok(()) };\n\n    let Some(x) = opt else { return };\n\n    let Some(y) = opt else {\n        return;\n    };\n\n    let Some(z) = some_very_very_very_very_long_name else { return };\n}\n
\n
See also max_width and use_small_heuristics
\n","default":50},"space_after_colon":{"type":"boolean","description":"Leave a space after the colon.\n\nStable: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))\n\n\n#### `true` (default):\n\n```rust\nfn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `false`:\n\n```rust\nfn lorem<T:Eq>(t:T) {\n    let lorem:Dolor = Lorem {\n        ipsum:dolor,\n        sit:amet,\n    };\n}\n```\n\nSee also: `space_before_colon`.","markdownDescription":"Leave a space after the colon.\n\nStable: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))\n\n\n#### `true` (default):\n\n```rust\nfn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `false`:\n\n```rust\nfn lorem<T:Eq>(t:T) {\n    let lorem:Dolor = Lorem {\n        ipsum:dolor,\n        sit:amet,\n    };\n}\n```\n\nSee also: `space_before_colon`.","x-intellij-html-description":"
Leave a space after the colon.
\n
Stable: No (tracking issue: #3366)
\n
true (default):
\n
fn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n
\n
false:
\n
fn lorem<T:Eq>(t:T) {\n    let lorem:Dolor = Lorem {\n        ipsum:dolor,\n        sit:amet,\n    };\n}\n
\n
See also: space_before_colon.
\n","default":true},"space_before_colon":{"type":"boolean","description":"Leave a space before the colon.\n\nStable: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))\n\n\n#### `false` (default):\n\n```rust\nfn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem<T : Eq>(t : T) {\n    let lorem : Dolor = Lorem {\n        ipsum : dolor,\n        sit : amet,\n    };\n}\n```\n\nSee also: `space_after_colon`.","markdownDescription":"Leave a space before the colon.\n\nStable: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))\n\n\n#### `false` (default):\n\n```rust\nfn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n```\n\n#### `true`:\n\n```rust\nfn lorem<T : Eq>(t : T) {\n    let lorem : Dolor = Lorem {\n        ipsum : dolor,\n        sit : amet,\n    };\n}\n```\n\nSee also: `space_after_colon`.","x-intellij-html-description":"
Leave a space before the colon.
\n
Stable: No (tracking issue: #3365)
\n
false (default):
\n
fn lorem<T: Eq>(t: T) {\n    let lorem: Dolor = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n}\n
\n
true:
\n
fn lorem<T : Eq>(t : T) {\n    let lorem : Dolor = Lorem {\n        ipsum : dolor,\n        sit : amet,\n    };\n}\n
\n
See also: space_after_colon.
\n","default":false},"spaces_around_ranges":{"type":"boolean","description":"Put spaces around the .., ..=, and ... range operators\n\nStable: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = 0..10;\n    let ipsum = 0..=10;\n\n    match lorem {\n        1..5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1..=5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1...5 => foo(),\n        _ => bar,\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = 0 .. 10;\n    let ipsum = 0 ..= 10;\n\n    match lorem {\n        1 .. 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ..= 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ... 5 => foo(),\n        _ => bar,\n    }\n}\n```","markdownDescription":"Put spaces around the .., ..=, and ... range operators\n\nStable: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = 0..10;\n    let ipsum = 0..=10;\n\n    match lorem {\n        1..5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1..=5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1...5 => foo(),\n        _ => bar,\n    }\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = 0 .. 10;\n    let ipsum = 0 ..= 10;\n\n    match lorem {\n        1 .. 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ..= 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ... 5 => foo(),\n        _ => bar,\n    }\n}\n```","x-intellij-html-description":"
Put spaces around the .., ..=, and ... range operators
\n
Stable: No (tracking issue: #3367)
\n
false (default):
\n
fn main() {\n    let lorem = 0..10;\n    let ipsum = 0..=10;\n\n    match lorem {\n        1..5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1..=5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1...5 => foo(),\n        _ => bar,\n    }\n}\n
\n
true:
\n
fn main() {\n    let lorem = 0 .. 10;\n    let ipsum = 0 ..= 10;\n\n    match lorem {\n        1 .. 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ..= 5 => foo(),\n        _ => bar,\n    }\n\n    match lorem {\n        1 ... 5 => foo(),\n        _ => bar,\n    }\n}\n
\n","default":false},"struct_field_align_threshold":{"type":"integer","description":"The maximum diff of width between struct fields to be aligned with each other.\n\nPossible values: any non-negative integer\n\nStable: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))\n\n\n#### `0` (default):\n\n```rust\nstruct Foo {\n    x: u32,\n    yy: u32,\n    zzz: u32,\n}\n```\n\n#### `20`:\n\n```rust\nstruct Foo {\n    x:   u32,\n    yy:  u32,\n    zzz: u32,\n}\n```","markdownDescription":"The maximum diff of width between struct fields to be aligned with each other.\n\nPossible values: any non-negative integer\n\nStable: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))\n\n\n#### `0` (default):\n\n```rust\nstruct Foo {\n    x: u32,\n    yy: u32,\n    zzz: u32,\n}\n```\n\n#### `20`:\n\n```rust\nstruct Foo {\n    x:   u32,\n    yy:  u32,\n    zzz: u32,\n}\n```","x-intellij-html-description":"
The maximum diff of width between struct fields to be aligned with each other.
\n
Possible values: any non-negative integer
\n
Stable: No (tracking issue: #3371)
\n
0 (default):
\n
struct Foo {\n    x: u32,\n    yy: u32,\n    zzz: u32,\n}\n
\n
20:
\n
struct Foo {\n    x:   u32,\n    yy:  u32,\n    zzz: u32,\n}\n
\n","default":0},"struct_lit_single_line":{"type":"boolean","description":"Put small struct literals on a single line\n\nStable: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))\n\n\n#### `true` (default):\n\n```rust\nfn main() {\n    let lorem = Lorem { foo: bar, baz: ofo };\n}\n```\n\n#### `false`:\n\n```rust\nfn main() {\n    let lorem = Lorem {\n        foo: bar,\n        baz: ofo,\n    };\n}\n```\n\nSee also: `indent_style`.","markdownDescription":"Put small struct literals on a single line\n\nStable: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))\n\n\n#### `true` (default):\n\n```rust\nfn main() {\n    let lorem = Lorem { foo: bar, baz: ofo };\n}\n```\n\n#### `false`:\n\n```rust\nfn main() {\n    let lorem = Lorem {\n        foo: bar,\n        baz: ofo,\n    };\n}\n```\n\nSee also: `indent_style`.","x-intellij-html-description":"
Put small struct literals on a single line
\n
Stable: No (tracking issue: #3357)
\n
true (default):
\n
fn main() {\n    let lorem = Lorem { foo: bar, baz: ofo };\n}\n
\n
false:
\n
fn main() {\n    let lorem = Lorem {\n        foo: bar,\n        baz: ofo,\n    };\n}\n
\n
See also: indent_style.
\n","default":true},"struct_lit_width":{"type":"integer","description":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_lit_width` will take precedence.\n\nSee also `max_width`, `use_small_heuristics`, and `struct_lit_single_line`","markdownDescription":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_lit_width` will take precedence.\n\nSee also `max_width`, `use_small_heuristics`, and `struct_lit_single_line`","x-intellij-html-description":"
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.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for struct_lit_width will take precedence.
\n
See also max_width, use_small_heuristics, and struct_lit_single_line
\n","default":18},"struct_variant_width":{"type":"integer","description":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_variant_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","markdownDescription":"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`.\n\nPossible values: any positive integer that is less than or equal to the value specified for `max_width`\n\nStable: Yes\n\nBy default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_variant_width` will take precedence.\n\nSee also `max_width` and `use_small_heuristics`","x-intellij-html-description":"
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.
\n
Possible values: any positive integer that is less than or equal to the value specified for max_width
\n
Stable: Yes
\n
By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for struct_variant_width will take precedence.
\n
See also max_width and use_small_heuristics
\n","default":35},"style_edition":{"description":"Controls the edition of the [Rust Style Guide] to use for formatting ([RFC 3338])\n\nPossible values: `\"2015\"`, `\"2018\"`, `\"2021\"`, `\"2024\"` (unstable variant)\n\nStable: No\n\n[Rust Style Guide]: https://doc.rust-lang.org/nightly/style-guide/\n[RFC 3338]: https://rust-lang.github.io/rfcs/3338-style-evolution.html","markdownDescription":"Controls the edition of the [Rust Style Guide] to use for formatting ([RFC 3338])\n\nPossible values: `\"2015\"`, `\"2018\"`, `\"2021\"`, `\"2024\"` (unstable variant)\n\nStable: No\n\n[Rust Style Guide]: https://doc.rust-lang.org/nightly/style-guide/\n[RFC 3338]: https://rust-lang.github.io/rfcs/3338-style-evolution.html","x-intellij-html-description":"
Controls the edition of the Rust Style Guide to use for formatting (RFC 3338)
\n
Possible values: "2015", "2018", "2021", "2024" (unstable variant)
\n
Stable: No
\n","default":"2015"},"tab_spaces":{"type":"integer","description":"Number of spaces per tab\n\nPossible values: any positive integer\n\nStable: Yes\n\n\n#### `4` (default):\n\n```rust\nfn lorem() {\n    let ipsum = dolor();\n    let sit = vec![\n        \"amet consectetur adipiscing elit amet\",\n        \"consectetur adipiscing elit amet consectetur.\",\n    ];\n}\n```\n\n#### `2`:\n\n```rust\nfn lorem() {\n  let ipsum = dolor();\n  let sit = vec![\n    \"amet consectetur adipiscing elit amet\",\n    \"consectetur adipiscing elit amet consectetur.\",\n  ];\n}\n```\n\nSee also: `hard_tabs`.","markdownDescription":"Number of spaces per tab\n\nPossible values: any positive integer\n\nStable: Yes\n\n\n#### `4` (default):\n\n```rust\nfn lorem() {\n    let ipsum = dolor();\n    let sit = vec![\n        \"amet consectetur adipiscing elit amet\",\n        \"consectetur adipiscing elit amet consectetur.\",\n    ];\n}\n```\n\n#### `2`:\n\n```rust\nfn lorem() {\n  let ipsum = dolor();\n  let sit = vec![\n    \"amet consectetur adipiscing elit amet\",\n    \"consectetur adipiscing elit amet consectetur.\",\n  ];\n}\n```\n\nSee also: `hard_tabs`.","x-intellij-html-description":"
Number of spaces per tab
\n
Possible values: any positive integer
\n
Stable: Yes
\n
4 (default):
\n
fn lorem() {\n    let ipsum = dolor();\n    let sit = vec![\n        "amet consectetur adipiscing elit amet",\n        "consectetur adipiscing elit amet consectetur.",\n    ];\n}\n
\n
2:
\n
fn lorem() {\n  let ipsum = dolor();\n  let sit = vec![\n    "amet consectetur adipiscing elit amet",\n    "consectetur adipiscing elit amet consectetur.",\n  ];\n}\n
\n
See also: hard_tabs.
\n","default":4},"trailing_comma":{"type":"string","description":"How to handle trailing commas for lists\n\nStable: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))\n\n\n#### `\"Vertical\"` (default):\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n```\n\n#### `\"Always\"`:\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit, } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n```\n\n#### `\"Never\"`:\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing\n    } = elit;\n}\n```\n\nSee also: `match_block_trailing_comma`.","markdownDescription":"How to handle trailing commas for lists\n\nStable: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))\n\n\n#### `\"Vertical\"` (default):\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n```\n\n#### `\"Always\"`:\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit, } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n```\n\n#### `\"Never\"`:\n\n```rust\nfn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing\n    } = elit;\n}\n```\n\nSee also: `match_block_trailing_comma`.","x-intellij-html-description":"
How to handle trailing commas for lists
\n
Stable: No (tracking issue: #3379)
\n
"Vertical" (default):
\n
fn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n
\n
"Always":
\n
fn main() {\n    let Lorem { ipsum, dolor, sit, } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing,\n    } = elit;\n}\n
\n
"Never":
\n
fn main() {\n    let Lorem { ipsum, dolor, sit } = amet;\n    let Lorem {\n        ipsum,\n        dolor,\n        sit,\n        amet,\n        consectetur,\n        adipiscing\n    } = elit;\n}\n
\n
See also: match_block_trailing_comma.
\n","default":"Vertical","enum":["Always","Never","Vertical"]},"trailing_semicolon":{"type":"boolean","description":"Add trailing semicolon after break, continue and return\n\nStable: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))\n\n\n#### `true` (default):\n```rust\nfn foo() -> usize {\n    return 0;\n}\n```\n\n#### `false`:\n```rust\nfn foo() -> usize {\n    return 0\n}\n```","markdownDescription":"Add trailing semicolon after break, continue and return\n\nStable: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))\n\n\n#### `true` (default):\n```rust\nfn foo() -> usize {\n    return 0;\n}\n```\n\n#### `false`:\n```rust\nfn foo() -> usize {\n    return 0\n}\n```","x-intellij-html-description":"
Add trailing semicolon after break, continue and return
\n
Stable: No (tracking issue: #3378)
\n
true (default):
\n
fn foo() -> usize {\n    return 0;\n}\n
\n
false:
\n
fn foo() -> usize {\n    return 0\n}\n
\n","default":true},"type_punctuation_density":{"type":"string","description":"Determines if `+` or `=` are wrapped in spaces in the punctuation of types\n\nStable: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))\n\n\n#### `\"Wide\"` (default):\n\n```rust\nfn lorem<Ipsum: Dolor + Sit = Amet>() {\n    // body\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\nfn lorem<Ipsum: Dolor+Sit=Amet>() {\n    // body\n}\n```","markdownDescription":"Determines if `+` or `=` are wrapped in spaces in the punctuation of types\n\nStable: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))\n\n\n#### `\"Wide\"` (default):\n\n```rust\nfn lorem<Ipsum: Dolor + Sit = Amet>() {\n    // body\n}\n```\n\n#### `\"Compressed\"`:\n\n```rust\nfn lorem<Ipsum: Dolor+Sit=Amet>() {\n    // body\n}\n```","x-intellij-html-description":"
Determines if + or = are wrapped in spaces in the punctuation of types
\n
Stable: No (tracking issue: #3364)
\n
"Wide" (default):
\n
fn lorem<Ipsum: Dolor + Sit = Amet>() {\n    // body\n}\n
\n
"Compressed":
\n
fn lorem<Ipsum: Dolor+Sit=Amet>() {\n    // body\n}\n
\n","default":"Wide","enum":["Compressed","Wide"]},"unstable_features":{"type":"boolean","description":"Enable unstable features on the unstable channel.\n\nStable: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))","markdownDescription":"Enable unstable features on the unstable channel.\n\nStable: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))","x-intellij-html-description":"
Enable unstable features on the unstable channel.
\n
Stable: No (tracking issue: #3387)
\n","default":false},"use_field_init_shorthand":{"type":"boolean","description":"Use field initialize shorthand if possible.\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nstruct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n    let b = Foo { x: x, y: y, z: z };\n}\n```\n\n#### `true`:\n\n```rust\nstruct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n}\n```","markdownDescription":"Use field initialize shorthand if possible.\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nstruct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n    let b = Foo { x: x, y: y, z: z };\n}\n```\n\n#### `true`:\n\n```rust\nstruct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n}\n```","x-intellij-html-description":"
Use field initialize shorthand if possible.
\n
Stable: Yes
\n
false (default):
\n
struct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n    let b = Foo { x: x, y: y, z: z };\n}\n
\n
true:
\n
struct Foo {\n    x: u32,\n    y: u32,\n    z: u32,\n}\n\nfn main() {\n    let x = 1;\n    let y = 2;\n    let z = 3;\n    let a = Foo { x, y, z };\n}\n
\n","default":false},"use_small_heuristics":{"type":"string","description":"This option can be used to simplify the management and bulk updates of the granular width configuration settings (`fn_call_width`, `attr_fn_like_width`, `struct_lit_width`, `struct_variant_width`, `array_width`, `chain_width`, `single_line_if_else_max_width`), that respectively control when formatted constructs are multi-lined/vertical based on width.\n\nNote that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by `use_small_heuristics`.\n\nStable: Yes\n\n\n#### `Default` (default):\nWhen `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`.\n\nThe ratios are:\n* `fn_call_width` - `60%`\n* `attr_fn_like_width` - `70%`\n* `struct_lit_width` - `18%`\n* `struct_variant_width` - `35%`\n* `array_width` - `60%`\n* `chain_width` - `60%`\n* `single_line_if_else_max_width` - `50%`\n* `single_line_let_else_max_width` - `50%`\n\nFor example when `max_width` is set to `100`, the width settings are:\n* `fn_call_width=60`\n* `attr_fn_like_width=70`\n* `struct_lit_width=18`\n* `struct_variant_width=35`\n* `array_width=60`\n* `chain_width=60`\n* `single_line_if_else_max_width=50`\n* `single_line_let_else_max_width=50`\n\nand when `max_width` is set to `200`:\n* `fn_call_width=120`\n* `attr_fn_like_width=140`\n* `struct_lit_width=36`\n* `struct_variant_width=70`\n* `array_width=120`\n* `chain_width=120`\n* `single_line_if_else_max_width=100`\n* `single_line_let_else_max_width=100`\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem(\n        \"lorem\",\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n    );\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n    let lorem = Lorem { ipsum: dolor };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n```\n\n#### `Off`:\nWhen `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.\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit {\n        amet: Consectetur,\n        adipiscing: Elit,\n    },\n}\n\nfn main() {\n    lorem(\"lorem\", \"ipsum\", \"dolor\", \"sit\", \"amet\", \"consectetur\", \"adipiscing\");\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n\n    let lorem = if ipsum {\n        dolor\n    } else {\n        sit\n    };\n}\n```\n\n#### `Max`:\nWhen `use_small_heuristics` is set to `Max`, then each granular width setting is set to the same value as `max_width`.\n\nSo if `max_width` is set to `200`, then all the width settings are also set to `200`.\n* `fn_call_width=200`\n* `attr_fn_like_width=200`\n* `struct_lit_width=200`\n* `struct_variant_width=200`\n* `array_width=200`\n* `chain_width=200`\n* `single_line_if_else_max_width=200`\n* `single_line_let_else_max_width=200`\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem(\"lorem\", \"ipsum\", \"dolor\", \"sit\", \"amet\", \"consectetur\", \"adipiscing\");\n\n    let lorem = Lorem { ipsum: dolor, sit: amet };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n```\n\n\nSee also:\n* `max_width`\n* `fn_call_width`\n* `attr_fn_like_width`\n* `struct_lit_width`\n* `struct_variant_width`\n* `array_width`\n* `chain_width`\n* `single_line_if_else_max_width`\n* `single_line_let_else_max_width`","markdownDescription":"This option can be used to simplify the management and bulk updates of the granular width configuration settings (`fn_call_width`, `attr_fn_like_width`, `struct_lit_width`, `struct_variant_width`, `array_width`, `chain_width`, `single_line_if_else_max_width`), that respectively control when formatted constructs are multi-lined/vertical based on width.\n\nNote that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by `use_small_heuristics`.\n\nStable: Yes\n\n\n#### `Default` (default):\nWhen `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`.\n\nThe ratios are:\n* `fn_call_width` - `60%`\n* `attr_fn_like_width` - `70%`\n* `struct_lit_width` - `18%`\n* `struct_variant_width` - `35%`\n* `array_width` - `60%`\n* `chain_width` - `60%`\n* `single_line_if_else_max_width` - `50%`\n* `single_line_let_else_max_width` - `50%`\n\nFor example when `max_width` is set to `100`, the width settings are:\n* `fn_call_width=60`\n* `attr_fn_like_width=70`\n* `struct_lit_width=18`\n* `struct_variant_width=35`\n* `array_width=60`\n* `chain_width=60`\n* `single_line_if_else_max_width=50`\n* `single_line_let_else_max_width=50`\n\nand when `max_width` is set to `200`:\n* `fn_call_width=120`\n* `attr_fn_like_width=140`\n* `struct_lit_width=36`\n* `struct_variant_width=70`\n* `array_width=120`\n* `chain_width=120`\n* `single_line_if_else_max_width=100`\n* `single_line_let_else_max_width=100`\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem(\n        \"lorem\",\n        \"ipsum\",\n        \"dolor\",\n        \"sit\",\n        \"amet\",\n        \"consectetur\",\n        \"adipiscing\",\n    );\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n    let lorem = Lorem { ipsum: dolor };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n```\n\n#### `Off`:\nWhen `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.\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit {\n        amet: Consectetur,\n        adipiscing: Elit,\n    },\n}\n\nfn main() {\n    lorem(\"lorem\", \"ipsum\", \"dolor\", \"sit\", \"amet\", \"consectetur\", \"adipiscing\");\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n\n    let lorem = if ipsum {\n        dolor\n    } else {\n        sit\n    };\n}\n```\n\n#### `Max`:\nWhen `use_small_heuristics` is set to `Max`, then each granular width setting is set to the same value as `max_width`.\n\nSo if `max_width` is set to `200`, then all the width settings are also set to `200`.\n* `fn_call_width=200`\n* `attr_fn_like_width=200`\n* `struct_lit_width=200`\n* `struct_variant_width=200`\n* `array_width=200`\n* `chain_width=200`\n* `single_line_if_else_max_width=200`\n* `single_line_let_else_max_width=200`\n\n```rust\nenum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem(\"lorem\", \"ipsum\", \"dolor\", \"sit\", \"amet\", \"consectetur\", \"adipiscing\");\n\n    let lorem = Lorem { ipsum: dolor, sit: amet };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n```\n\n\nSee also:\n* `max_width`\n* `fn_call_width`\n* `attr_fn_like_width`\n* `struct_lit_width`\n* `struct_variant_width`\n* `array_width`\n* `chain_width`\n* `single_line_if_else_max_width`\n* `single_line_let_else_max_width`","x-intellij-html-description":"
This option can be used to simplify the management and bulk updates of the granular width configuration settings (fn_call_width, attr_fn_like_width, struct_lit_width, struct_variant_width, array_width, chain_width, single_line_if_else_max_width), that respectively control when formatted constructs are multi-lined/vertical based on width.
\n
Note that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by use_small_heuristics.
\n
Stable: Yes
\n
Default (default):
\n
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.
\n
The ratios are:
\n
\n
fn_call_width - 60%
\n
attr_fn_like_width - 70%
\n
struct_lit_width - 18%
\n
struct_variant_width - 35%
\n
array_width - 60%
\n
chain_width - 60%
\n
single_line_if_else_max_width - 50%
\n
single_line_let_else_max_width - 50%
\n
\n
For example when max_width is set to 100, the width settings are:
\n
\n
fn_call_width=60
\n
attr_fn_like_width=70
\n
struct_lit_width=18
\n
struct_variant_width=35
\n
array_width=60
\n
chain_width=60
\n
single_line_if_else_max_width=50
\n
single_line_let_else_max_width=50
\n
\n
and when max_width is set to 200:
\n
\n
fn_call_width=120
\n
attr_fn_like_width=140
\n
struct_lit_width=36
\n
struct_variant_width=70
\n
array_width=120
\n
chain_width=120
\n
single_line_if_else_max_width=100
\n
single_line_let_else_max_width=100
\n
\n
enum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem(\n        "lorem",\n        "ipsum",\n        "dolor",\n        "sit",\n        "amet",\n        "consectetur",\n        "adipiscing",\n    );\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n    let lorem = Lorem { ipsum: dolor };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n
\n
Off:
\n
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.
\n
enum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit {\n        amet: Consectetur,\n        adipiscing: Elit,\n    },\n}\n\nfn main() {\n    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");\n\n    let lorem = Lorem {\n        ipsum: dolor,\n        sit: amet,\n    };\n\n    let lorem = if ipsum {\n        dolor\n    } else {\n        sit\n    };\n}\n
\n
Max:
\n
When use_small_heuristics is set to Max, then each granular width setting is set to the same value as max_width.
\n
So if max_width is set to 200, then all the width settings are also set to 200.
\n
\n
fn_call_width=200
\n
attr_fn_like_width=200
\n
struct_lit_width=200
\n
struct_variant_width=200
\n
array_width=200
\n
chain_width=200
\n
single_line_if_else_max_width=200
\n
single_line_let_else_max_width=200
\n
\n
enum Lorem {\n    Ipsum,\n    Dolor(bool),\n    Sit { amet: Consectetur, adipiscing: Elit },\n}\n\nfn main() {\n    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");\n\n    let lorem = Lorem { ipsum: dolor, sit: amet };\n\n    let lorem = if ipsum { dolor } else { sit };\n}\n
\n
See also:
\n
\n
max_width
\n
fn_call_width
\n
attr_fn_like_width
\n
struct_lit_width
\n
struct_variant_width
\n
array_width
\n
chain_width
\n
single_line_if_else_max_width
\n
single_line_let_else_max_width
\n
\n","default":"Default","enum":["Default","Off","Max"]},"use_try_shorthand":{"type":"boolean","description":"Replace uses of the try! macro by the ? shorthand\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n\n    let lorem = try!(ipsum.map(|dolor| dolor.sit()));\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n}\n```","markdownDescription":"Replace uses of the try! macro by the ? shorthand\n\nStable: Yes\n\n\n#### `false` (default):\n\n```rust\nfn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n\n    let lorem = try!(ipsum.map(|dolor| dolor.sit()));\n}\n```\n\n#### `true`:\n\n```rust\nfn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n}\n```","x-intellij-html-description":"
Replace uses of the try! macro by the ? shorthand
\n
Stable: Yes
\n
false (default):
\n
fn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n\n    let lorem = try!(ipsum.map(|dolor| dolor.sit()));\n}\n
\n
true:
\n
fn main() {\n    let lorem = ipsum.map(|dolor| dolor.sit())?;\n}\n
\n","default":false},"version":{"type":"string","description":"This option is deprecated and has been replaced by `style_edition`.\n`version = \"One\"` is equivalent to `style_edition = \"(2015|2018|2021)\"` and\n`version = \"Two\"` is equivalent to `style_edition = \"2024\"`\n\nStable: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))\n\n\n### Example\n\n```toml\nversion = \"Two\"\n```","markdownDescription":"This option is deprecated and has been replaced by `style_edition`.\n`version = \"One\"` is equivalent to `style_edition = \"(2015|2018|2021)\"` and\n`version = \"Two\"` is equivalent to `style_edition = \"2024\"`\n\nStable: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))\n\n\n### Example\n\n```toml\nversion = \"Two\"\n```","x-intellij-html-description":"
This option is deprecated and has been replaced by style_edition.\nversion = "One" is equivalent to style_edition = "(2015|2018|2021)" and\nversion = "Two" is equivalent to style_edition = "2024"
\n
Stable: No (tracking issue: #3383)
\n
Example
\n
version = "Two"\n
\n","default":"One","enum":["One","Two"]},"where_single_line":{"type":"boolean","description":"Forces the `where` clause to be laid out on a single line.\n\nStable: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))\n\n\n#### `false` (default):\n\n```rust\nimpl<T> Lorem for T\nwhere\n    Option<T>: Ipsum,\n{\n    // body\n}\n```\n\n#### `true`:\n\n```rust\nimpl<T> Lorem for T\nwhere Option<T>: Ipsum\n{\n    // body\n}\n```\n\nSee also `brace_style`, `control_brace_style`.","markdownDescription":"Forces the `where` clause to be laid out on a single line.\n\nStable: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))\n\n\n#### `false` (default):\n\n```rust\nimpl<T> Lorem for T\nwhere\n    Option<T>: Ipsum,\n{\n    // body\n}\n```\n\n#### `true`:\n\n```rust\nimpl<T> Lorem for T\nwhere Option<T>: Ipsum\n{\n    // body\n}\n```\n\nSee also `brace_style`, `control_brace_style`.","x-intellij-html-description":"
Forces the where clause to be laid out on a single line.
\n
Stable: No (tracking issue: #3359)
\n
false (default):
\n
impl<T> Lorem for T\nwhere\n    Option<T>: Ipsum,\n{\n    // body\n}\n
\n
true:
\n
impl<T> Lorem for T\nwhere Option<T>: Ipsum\n{\n    // body\n}\n
\n
See also brace_style, control_brace_style.
\n","default":false},"wrap_comments":{"type":"boolean","description":"Break comments to fit on the line\n\nNote that no wrapping will happen if:\n1. The comment is the start of a markdown header doc comment\n2. An URL was found in the comment\n\nStable: No (tracking issue: [#3347](https://github.com/rust-lang/rustfmt/issues/3347))\n\n\n#### `false` (default):\n\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// 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.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n```\n\n#### `true`:\n\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n```","markdownDescription":"Break comments to fit on the line\n\nNote that no wrapping will happen if:\n1. The comment is the start of a markdown header doc comment\n2. An URL was found in the comment\n\nStable: No (tracking issue: [#3347](https://github.com/rust-lang/rustfmt/issues/3347))\n\n\n#### `false` (default):\n\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// 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.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n```\n\n#### `true`:\n\n```rust\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n```","x-intellij-html-description":"
Break comments to fit on the line
\n
Note that no wrapping will happen if:
\n
\n
The comment is the start of a markdown header doc comment
\n
An URL was found in the comment
\n
\n
Stable: No (tracking issue: #3347)
\n
false (default):
\n
// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// 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.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n
\n
true:
\n
// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n// sed do eiusmod tempor incididunt ut labore et dolore\n// magna aliqua. Ut enim ad minim veniam, quis nostrud\n// exercitation ullamco laboris nisi ut aliquip ex ea\n// commodo consequat.\n\n// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.\n\n/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.\nstruct Foo {}\n
\n","default":false}}}
</schema>

[User] Provide a JSON object that satisfies the schema "rustfmt". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.

Parts of this file were taken from rustfmt's repository, which is double licensed under MIT and Apache 2.0, on 2024-10-21.

rustfmt

rustfmt configurations

Maximum width of an array literal before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `array_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of an array literal before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `array_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of an array literal before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for array_width will take precedence.

See also max_width and use_small_heuristics

Maximum width of the args of a function-like attributes before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `attr_fn_like_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of the args of a function-like attributes before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `attr_fn_like_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of the args of a function-like attributes before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for attr_fn_like_width will take precedence.

See also max_width and use_small_heuristics

Where to put a binary operator when a binary expression goes multiline.

Stable: No (tracking issue: [#3368](https://github.com/rust-lang/rustfmt/issues/3368))

#### `"Front"` (default):

```rust
fn main() {
    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
        || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;

    let sum = 123456789012345678901234567890
        + 123456789012345678901234567890
        + 123456789012345678901234567890;

    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
}
```

#### `"Back"`:

```rust
fn main() {
    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||
        barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;

    let sum = 123456789012345678901234567890 +
        123456789012345678901234567890 +
        123456789012345678901234567890;

    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..
        bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
}
```

Where to put a binary operator when a binary expression goes multiline.

Stable: No (tracking issue: #3368)

"Front" (default):

fn main() {
    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo
        || barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;

    let sum = 123456789012345678901234567890
        + 123456789012345678901234567890
        + 123456789012345678901234567890;

    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        ..bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
}

"Back":

fn main() {
    let or = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo ||
        barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar;

    let sum = 123456789012345678901234567890 +
        123456789012345678901234567890 +
        123456789012345678901234567890;

    let range = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..
        bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
}

Minimum number of blank lines which must be put between items. If two items have fewer blank lines between
them, additional blank lines are inserted.

Possible values: *unsigned integer*

Stable: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))

### Example
Original Code (rustfmt will not change it with the default value of `0`):

```rust
#![rustfmt::skip]

fn foo() {
    println!("a");
}
fn bar() {
    println!("b");
    println!("c");
}
```

#### `1`
```rust
fn foo() {

    println!("a");
}

fn bar() {

    println!("b");

    println!("c");
}
```

Minimum number of blank lines which must be put between items. If two items have fewer blank lines between
them, additional blank lines are inserted.

Possible values: *unsigned integer*

Stable: No (tracking issue: [#3382](https://github.com/rust-lang/rustfmt/issues/3382))

### Example
Original Code (rustfmt will not change it with the default value of `0`):

```rust
#![rustfmt::skip]

fn foo() {
    println!("a");
}
fn bar() {
    println!("b");
    println!("c");
}
```

#### `1`
```rust
fn foo() {

    println!("a");
}

fn bar() {

    println!("b");

    println!("c");
}
```

Minimum number of blank lines which must be put between items. If two items have fewer blank lines between
them, additional blank lines are inserted.

Possible values: unsigned integer

Stable: No (tracking issue: #3382)

Example

Original Code (rustfmt will not change it with the default value of 0):

#![rustfmt::skip]

fn foo() {
    println!("a");
}
fn bar() {
    println!("b");
    println!("c");
}

1

fn foo() {

    println!("a");
}

fn bar() {

    println!("b");

    println!("c");
}

Maximum number of blank lines which can be put between items. If more than this number of consecutive empty
lines are found, they are trimmed down to match this integer.

Possible values: any non-negative integer

Stable: No (tracking issue: [#3381](https://github.com/rust-lang/rustfmt/issues/3381))

### Example
Original Code:

```rust
#![rustfmt::skip]

fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}
```

#### `1` (default):
```rust
fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}
```

#### `2`:
```rust
fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}
```

See also: `blank_lines_lower_bound`

Maximum number of blank lines which can be put between items. If more than this number of consecutive empty
lines are found, they are trimmed down to match this integer.

Possible values: any non-negative integer

Stable: No (tracking issue: #3381)

Example

Original Code:

#![rustfmt::skip]

fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}

1 (default):

fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}

2:

fn foo() {
    println!("a");
}

fn bar() {
    println!("b");

    println!("c");
}

See also: blank_lines_lower_bound

Brace style for items

Stable: No (tracking issue: [#3376](https://github.com/rust-lang/rustfmt/issues/3376))

### Functions

#### `"SameLineWhere"` (default):

```rust
fn lorem() {
    // body
}

fn lorem(ipsum: usize) {
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div,
{
    // body
}
```

#### `"AlwaysNextLine"`:

```rust
fn lorem()
{
    // body
}

fn lorem(ipsum: usize)
{
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div,
{
    // body
}
```

#### `"PreferSameLine"`:

```rust
fn lorem() {
    // body
}

fn lorem(ipsum: usize) {
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div, {
    // body
}
```

### Structs and enums

#### `"SameLineWhere"` (default):

```rust
struct Lorem {
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq,
{
    sit: T,
}
```

#### `"AlwaysNextLine"`:

```rust
struct Lorem
{
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq,
{
    sit: T,
}
```

#### `"PreferSameLine"`:

```rust
struct Lorem {
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq, {
    sit: T,
}
```

Brace style for items

Stable: No (tracking issue: #3376)

Functions

"SameLineWhere" (default):

fn lorem() {
    // body
}

fn lorem(ipsum: usize) {
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div,
{
    // body
}

"AlwaysNextLine":

fn lorem()
{
    // body
}

fn lorem(ipsum: usize)
{
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div,
{
    // body
}

"PreferSameLine":

fn lorem() {
    // body
}

fn lorem(ipsum: usize) {
    // body
}

fn lorem<T>(ipsum: T)
where
    T: Add + Sub + Mul + Div, {
    // body
}

Structs and enums

"SameLineWhere" (default):

struct Lorem {
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq,
{
    sit: T,
}

"AlwaysNextLine":

struct Lorem
{
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq,
{
    sit: T,
}

"PreferSameLine":

struct Lorem {
    ipsum: bool,
}

struct Dolor<T>
where
    T: Eq, {
    sit: T,
}

Maximum width of a chain to fit on one line.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `chain_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of a chain to fit on one line.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `chain_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of a chain to fit on one line.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for chain_width will take precedence.

See also max_width and use_small_heuristics

Whether to use colored output or not.

Stable: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))

Whether to use colored output or not.

Stable: No (tracking issue: [#3385](https://github.com/rust-lang/rustfmt/issues/3385))

Whether to use colored output or not.

Stable: No (tracking issue: #3385)

Combine control expressions with function calls.

Stable: No (tracking issue: [#3369](https://github.com/rust-lang/rustfmt/issues/3369))

#### `true` (default):

```rust
fn example() {
    // If
    foo!(if x {
        foo();
    } else {
        bar();
    });

    // IfLet
    foo!(if let Some(..) = x {
        foo();
    } else {
        bar();
    });

    // While
    foo!(while x {
        foo();
        bar();
    });

    // WhileLet
    foo!(while let Some(..) = x {
        foo();
        bar();
    });

    // ForLoop
    foo!(for x in y {
        foo();
        bar();
    });

    // Loop
    foo!(loop {
        foo();
        bar();
    });
}
```

#### `false`:

```rust
fn example() {
    // If
    foo!(
        if x {
            foo();
        } else {
            bar();
        }
    );

    // IfLet
    foo!(
        if let Some(..) = x {
            foo();
        } else {
            bar();
        }
    );

    // While
    foo!(
        while x {
            foo();
            bar();
        }
    );

    // WhileLet
    foo!(
        while let Some(..) = x {
            foo();
            bar();
        }
    );

    // ForLoop
    foo!(
        for x in y {
            foo();
            bar();
        }
    );

    // Loop
    foo!(
        loop {
            foo();
            bar();
        }
    );
}
```

Combine control expressions with function calls.

Stable: No (tracking issue: #3369)

true (default):

fn example() {
    // If
    foo!(if x {
        foo();
    } else {
        bar();
    });

    // IfLet
    foo!(if let Some(..) = x {
        foo();
    } else {
        bar();
    });

    // While
    foo!(while x {
        foo();
        bar();
    });

    // WhileLet
    foo!(while let Some(..) = x {
        foo();
        bar();
    });

    // ForLoop
    foo!(for x in y {
        foo();
        bar();
    });

    // Loop
    foo!(loop {
        foo();
        bar();
    });
}

false:

fn example() {
    // If
    foo!(
        if x {
            foo();
        } else {
            bar();
        }
    );

    // IfLet
    foo!(
        if let Some(..) = x {
            foo();
        } else {
            bar();
        }
    );

    // While
    foo!(
        while x {
            foo();
            bar();
        }
    );

    // WhileLet
    foo!(
        while let Some(..) = x {
            foo();
            bar();
        }
    );

    // ForLoop
    foo!(
        for x in y {
            foo();
            bar();
        }
    );

    // Loop
    foo!(
        loop {
            foo();
            bar();
        }
    );
}

Maximum length of comments. No effect unless `wrap_comments = true`.

Possible values: any positive integer

Stable: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))

**Note:** A value of `0` results in `wrap_comments` being applied regardless of a line's width.

#### `80` (default; comments shorter than `comment_width`):
```rust
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
```

#### `60` (comments longer than `comment_width`):
```rust
// Lorem ipsum dolor sit amet,
// consectetur adipiscing elit.
```

See also `wrap_comments`.

Maximum length of comments. No effect unless `wrap_comments = true`.

Possible values: any positive integer

Stable: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))

**Note:** A value of `0` results in `wrap_comments` being applied regardless of a line's width.

#### `80` (default; comments shorter than `comment_width`):
```rust
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
```

#### `60` (comments longer than `comment_width`):
```rust
// Lorem ipsum dolor sit amet,
// consectetur adipiscing elit.
```

See also `wrap_comments`.

Maximum length of comments. No effect unless wrap_comments = true.

Possible values: any positive integer

Stable: No (tracking issue: #3349)

Note: A value of 0 results in wrap_comments being applied regardless of a line's width.

80 (default; comments shorter than comment_width):

// Lorem ipsum dolor sit amet, consectetur adipiscing elit.

60 (comments longer than comment_width):

// Lorem ipsum dolor sit amet,
// consectetur adipiscing elit.

See also wrap_comments.

Replace strings of _ wildcards by a single .. in tuple patterns

Stable: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))

#### `false` (default):

```rust
fn main() {
    let (lorem, ipsum, _, _) = (1, 2, 3, 4);
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}
```

#### `true`:

```rust
fn main() {
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}
```

Replace strings of _ wildcards by a single .. in tuple patterns

Stable: No (tracking issue: [#3384](https://github.com/rust-lang/rustfmt/issues/3384))

#### `false` (default):

```rust
fn main() {
    let (lorem, ipsum, _, _) = (1, 2, 3, 4);
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}
```

#### `true`:

```rust
fn main() {
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}
```

Replace strings of _ wildcards by a single .. in tuple patterns

Stable: No (tracking issue: #3384)

false (default):

fn main() {
    let (lorem, ipsum, _, _) = (1, 2, 3, 4);
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}

true:

fn main() {
    let (lorem, ipsum, ..) = (1, 2, 3, 4);
}

Brace style for control flow constructs

Stable: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))

#### `"AlwaysSameLine"` (default):

```rust
fn main() {
    if lorem {
        println!("ipsum!");
    } else {
        println!("dolor!");
    }
}
```

#### `"AlwaysNextLine"`:

```rust
fn main() {
    if lorem
    {
        println!("ipsum!");
    }
    else
    {
        println!("dolor!");
    }
}
```

#### `"ClosingNextLine"`:

```rust
fn main() {
    if lorem {
        println!("ipsum!");
    }
    else {
        println!("dolor!");
    }
}
```

Brace style for control flow constructs

Stable: No (tracking issue: [#3377](https://github.com/rust-lang/rustfmt/issues/3377))

#### `"AlwaysSameLine"` (default):

```rust
fn main() {
    if lorem {
        println!("ipsum!");
    } else {
        println!("dolor!");
    }
}
```

#### `"AlwaysNextLine"`:

```rust
fn main() {
    if lorem
    {
        println!("ipsum!");
    }
    else
    {
        println!("dolor!");
    }
}
```

#### `"ClosingNextLine"`:

```rust
fn main() {
    if lorem {
        println!("ipsum!");
    }
    else {
        println!("dolor!");
    }
}
```

Brace style for control flow constructs

Stable: No (tracking issue: #3377)

"AlwaysSameLine" (default):

fn main() {
    if lorem {
        println!("ipsum!");
    } else {
        println!("dolor!");
    }
}

"AlwaysNextLine":

fn main() {
    if lorem
    {
        println!("ipsum!");
    }
    else
    {
        println!("dolor!");
    }
}

"ClosingNextLine":

fn main() {
    if lorem {
        println!("ipsum!");
    }
    else {
        println!("dolor!");
    }
}

Don't reformat anything.

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.

Stable: Yes

Don't reformat anything.

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.

Stable: Yes

Don't reformat anything.

Note that this option may be soft-deprecated in the future once the ignore option is stabilized. Nightly toolchain users are encouraged to use ignore instead when possible.

Stable: Yes

Specifies which edition is used by the parser.

Stable: Yes

Rustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed
through the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified
in your config file:

```toml
edition = "2018"
```

Specifies which edition is used by the parser.

Stable: Yes

Rustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed
through the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified
in your config file:

```toml
edition = "2018"
```

Specifies which edition is used by the parser.

Stable: Yes

Rustfmt is able to pick up the edition used by reading the Cargo.toml file if executed
through the Cargo's formatting tool cargo fmt. Otherwise, the edition needs to be specified
in your config file:

edition = "2018"

Put empty-body functions and impls on a single line

Stable: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))

#### `true` (default):

```rust
fn lorem() {}

impl Lorem {}
```

#### `false`:

```rust
fn lorem() {
}

impl Lorem {
}
```

See also `brace_style`, `control_brace_style`.

Put empty-body functions and impls on a single line

Stable: No (tracking issue: [#3356](https://github.com/rust-lang/rustfmt/issues/3356))

#### `true` (default):

```rust
fn lorem() {}

impl Lorem {}
```

#### `false`:

```rust
fn lorem() {
}

impl Lorem {
}
```

See also `brace_style`, `control_brace_style`.

Put empty-body functions and impls on a single line

Stable: No (tracking issue: #3356)

true (default):

fn lorem() {}

impl Lorem {}

false:

fn lorem() {
}

impl Lorem {
}

See also brace_style, control_brace_style.

The maximum length of enum variant having discriminant, that gets vertically aligned with others.
Variants without discriminants would be ignored for the purpose of alignment.

Note that this is not how much whitespace is inserted, but instead the longest variant name that
doesn't get ignored when aligning.

Possible values: any positive integer

Stable: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))

#### `0` (default):

```rust
enum Foo {
    A = 0,
    Bb = 1,
    RandomLongVariantGoesHere = 10,
    Ccc = 71,
}

enum Bar {
    VeryLongVariantNameHereA = 0,
    VeryLongVariantNameHereBb = 1,
    VeryLongVariantNameHereCcc = 2,
}
```

#### `20`:

```rust
enum Foo {
    A   = 0,
    Bb  = 1,
    RandomLongVariantGoesHere = 10,
    Ccc = 2,
}

enum Bar {
    VeryLongVariantNameHereA = 0,
    VeryLongVariantNameHereBb = 1,
    VeryLongVariantNameHereCcc = 2,
}
```

The maximum length of enum variant having discriminant, that gets vertically aligned with others.
Variants without discriminants would be ignored for the purpose of alignment.

Note that this is not how much whitespace is inserted, but instead the longest variant name that
doesn't get ignored when aligning.

Possible values: any positive integer

Stable: No (tracking issue: #3372)

0 (default):

enum Foo {
    A = 0,
    Bb = 1,
    RandomLongVariantGoesHere = 10,
    Ccc = 71,
}

enum Bar {
    VeryLongVariantNameHereA = 0,
    VeryLongVariantNameHereBb = 1,
    VeryLongVariantNameHereCcc = 2,
}

20:

enum Foo {
    A   = 0,
    Bb  = 1,
    RandomLongVariantGoesHere = 10,
    Ccc = 2,
}

enum Bar {
    VeryLongVariantNameHereA = 0,
    VeryLongVariantNameHereBb = 1,
    VeryLongVariantNameHereCcc = 2,
}

Error if Rustfmt is unable to get all lines within `max_width`, except for comments and string
literals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by
refactoring your code to avoid long/complex expressions, usually by extracting a local variable or
using a shorter name.

Stable: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))

See also `max_width`.

Error if Rustfmt is unable to get all lines within `max_width`, except for comments and string
literals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by
refactoring your code to avoid long/complex expressions, usually by extracting a local variable or
using a shorter name.

Stable: No (tracking issue: [#3391](https://github.com/rust-lang/rustfmt/issues/3391))

See also `max_width`.

Error if Rustfmt is unable to get all lines within max_width, except for comments and string
literals. If this happens, then it is a bug in Rustfmt. You might be able to work around the bug by
refactoring your code to avoid long/complex expressions, usually by extracting a local variable or
using a shorter name.

Stable: No (tracking issue: #3391)

See also max_width.

Error if unable to get comments or string literals within `max_width`, or they are left with
trailing whitespaces.

Stable: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))

Error if unable to get comments or string literals within `max_width`, or they are left with
trailing whitespaces.

Stable: No (tracking issue: [#3392](https://github.com/rust-lang/rustfmt/issues/3392))

Error if unable to get comments or string literals within max_width, or they are left with
trailing whitespaces.

Stable: No (tracking issue: #3392)

This option is deprecated and has been renamed to `fn_params_layout` to better communicate that
it affects the layout of parameters in function signatures.

Stable: Yes

#### `"Tall"` (default):

```rust
trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}
```

#### `"Compressed"`:

```rust
trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    ) {
        // body
    }
}
```

#### `"Vertical"`:

```rust
trait Lorem {
    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    ) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}
```

See also `fn_params_layout`

This option is deprecated and has been renamed to fn_params_layout to better communicate that
it affects the layout of parameters in function signatures.

Stable: Yes

"Tall" (default):

trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}

"Compressed":

trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    ) {
        // body
    }
}

"Vertical":

trait Lorem {
    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    ) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}

See also fn_params_layout

Maximum width of the args of a function call before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `fn_call_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of the args of a function call before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `fn_call_width` will take precedence.

See also `max_width` and `use_small_heuristics`

Maximum width of the args of a function call before falling back to vertical formatting.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for fn_call_width will take precedence.

See also max_width and use_small_heuristics

Control the layout of parameters in function signatures.

Stable: Yes

#### `"Tall"` (default):

```rust
trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}
```

#### `"Compressed"`:

```rust
trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    ) {
        // body
    }
}
```

#### `"Vertical"`:

```rust
trait Lorem {
    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    ) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}
```

Control the layout of parameters in function signatures.

Stable: Yes

"Tall" (default):

trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}

"Compressed":

trait Lorem {
    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);

    fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
        // body
    }

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
        adipiscing: Adipiscing, elit: Elit,
    ) {
        // body
    }
}

"Vertical":

trait Lorem {
    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
    ) {
        // body
    }

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    );

    fn lorem(
        ipsum: Ipsum,
        dolor: Dolor,
        sit: Sit,
        amet: Amet,
        consectetur: Consectetur,
        adipiscing: Adipiscing,
        elit: Elit,
    ) {
        // body
    }
}

Put single-expression functions on a single line

Stable: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))

#### `false` (default):

```rust
fn lorem() -> usize {
    42
}

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}
```

#### `true`:

```rust
fn lorem() -> usize { 42 }

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}
```

See also `control_brace_style`.

Put single-expression functions on a single line

Stable: No (tracking issue: [#3358](https://github.com/rust-lang/rustfmt/issues/3358))

#### `false` (default):

```rust
fn lorem() -> usize {
    42
}

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}
```

#### `true`:

```rust
fn lorem() -> usize { 42 }

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}
```

See also `control_brace_style`.

Put single-expression functions on a single line

Stable: No (tracking issue: #3358)

false (default):

fn lorem() -> usize {
    42
}

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}

true:

fn lorem() -> usize { 42 }

fn lorem() -> usize {
    let ipsum = 42;
    ipsum
}

See also control_brace_style.

Always print the abi for extern items

Stable: Yes

**Note:** Non-"C" ABIs are always printed. If `false` then "C" is removed.

#### `true` (default):

```rust
extern "C" {
    pub static lorem: c_int;
}
```

#### `false`:

```rust
extern {
    pub static lorem: c_int;
}
```

Always print the abi for extern items

Stable: Yes

**Note:** Non-"C" ABIs are always printed. If `false` then "C" is removed.

#### `true` (default):

```rust
extern "C" {
    pub static lorem: c_int;
}
```

#### `false`:

```rust
extern {
    pub static lorem: c_int;
}
```

Always print the abi for extern items

Stable: Yes

Note: Non-"C" ABIs are always printed. If false then "C" is removed.

true (default):

extern "C" {
    pub static lorem: c_int;
}

false:

extern {
    pub static lorem: c_int;
}

Force multiline closure and match arm bodies to be wrapped in a block

Stable: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))

#### `false` (default):

```rust
fn main() {
    result.and_then(|maybe_value| match maybe_value {
        None => foo(),
        Some(value) => bar(),
    });

    match lorem {
        None => |ipsum| {
            println!("Hello World");
        },
        Some(dolor) => foo(),
    }
}
```

#### `true`:

```rust
fn main() {
    result.and_then(|maybe_value| {
        match maybe_value {
            None => foo(),
            Some(value) => bar(),
        }
    });

    match lorem {
        None => {
            |ipsum| {
                println!("Hello World");
            }
        }
        Some(dolor) => foo(),
    }
}
```

Force multiline closure and match arm bodies to be wrapped in a block

Stable: No (tracking issue: [#3374](https://github.com/rust-lang/rustfmt/issues/3374))

#### `false` (default):

```rust
fn main() {
    result.and_then(|maybe_value| match maybe_value {
        None => foo(),
        Some(value) => bar(),
    });

    match lorem {
        None => |ipsum| {
            println!("Hello World");
        },
        Some(dolor) => foo(),
    }
}
```

#### `true`:

```rust
fn main() {
    result.and_then(|maybe_value| {
        match maybe_value {
            None => foo(),
            Some(value) => bar(),
        }
    });

    match lorem {
        None => {
            |ipsum| {
                println!("Hello World");
            }
        }
        Some(dolor) => foo(),
    }
}
```

Force multiline closure and match arm bodies to be wrapped in a block

Stable: No (tracking issue: #3374)

false (default):

fn main() {
    result.and_then(|maybe_value| match maybe_value {
        None => foo(),
        Some(value) => bar(),
    });

    match lorem {
        None => |ipsum| {
            println!("Hello World");
        },
        Some(dolor) => foo(),
    }
}

true:

fn main() {
    result.and_then(|maybe_value| {
        match maybe_value {
            None => foo(),
            Some(value) => bar(),
        }
    });

    match lorem {
        None => {
            |ipsum| {
                println!("Hello World");
            }
        }
        Some(dolor) => foo(),
    }
}

Format code snippet included in doc comments.

Stable: No (tracking issue: [#3348](https://github.com/rust-lang/rustfmt/issues/3348))

#### `false` (default):

```rust
/// Adds one to the number given.
///
/// # Examples
///
/// ```rust
/// let five=5;
///
/// assert_eq!(
///     6,
///     add_one(5)
/// );
/// # fn add_one(x: i32) -> i32 {
/// #     x + 1
/// # }
/// ```
fn add_one(x: i32) -> i32 {
    x + 1
}
```

#### `true`

```rust
/// Adds one to the number given.
///
/// # Examples
///
/// ```rust
/// let five = 5;
///
/// assert_eq!(6, add_one(5));
/// # fn add_one(x: i32) -> i32 {
/// #     x + 1
/// # }
/// ```
fn add_one(x: i32) -> i32 {
    x + 1
}
```

Format code snippet included in doc comments.

Stable: No (tracking issue: #3348)

false (default):

/// Adds one to the number given.
///
/// # Examples
///
/// ```rust
/// let five=5;
///
/// assert_eq!(
///     6,
///     add_one(5)
/// );
/// # fn add_one(x: i32) -> i32 {
/// #     x + 1
/// # }
/// ```
fn add_one(x: i32) -> i32 {
    x + 1
}

true

/// Adds one to the number given.
///
/// # Examples
///
/// ```rust
/// let five = 5;
///
/// assert_eq!(6, add_one(5));
/// # fn add_one(x: i32) -> i32 {
/// #     x + 1
/// # }
/// ```
fn add_one(x: i32) -> i32 {
    x + 1
}

Max width for code snippets included in doc comments. Only used if `format_code_in_doc_comments` is true.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))

Max width for code snippets included in doc comments. Only used if `format_code_in_doc_comments` is true.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))

Max width for code snippets included in doc comments. Only used if format_code_in_doc_comments is true.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: No (tracking issue: #5359)

Format generated files. A file is considered generated if any of the first several lines contain a `@generated` comment marker. The number of lines to check is configured by `generated_marker_line_search_limit`.

By default, generated files are reformatted, i. e. `@generated` marker is ignored.
This option is currently ignored for stdin (`@generated` in stdin is ignored.)

Stable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))

Format generated files. A file is considered generated if any of the first several lines contain a `@generated` comment marker. The number of lines to check is configured by `generated_marker_line_search_limit`.

By default, generated files are reformatted, i. e. `@generated` marker is ignored.
This option is currently ignored for stdin (`@generated` in stdin is ignored.)

Stable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))

Format generated files. A file is considered generated if any of the first several lines contain a @generated comment marker. The number of lines to check is configured by generated_marker_line_search_limit.

By default, generated files are reformatted, i. e. @generated marker is ignored.
This option is currently ignored for stdin (@generated in stdin is ignored.)

Stable: No (tracking issue: #5080)

Number of lines to check for a `@generated` pragma header, starting from the top of the file. Setting this value to `0` will treat all files as non-generated. When`format_generated_files` is `true`, this option has no effect.

Possible values: any positive integer

Stable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))

See also [format_generated_files](#format_generated_files) link here.

Number of lines to check for a `@generated` pragma header, starting from the top of the file. Setting this value to `0` will treat all files as non-generated. When`format_generated_files` is `true`, this option has no effect.

Possible values: any positive integer

Stable: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))

See also [format_generated_files](#format_generated_files) link here.

Number of lines to check for a @generated pragma header, starting from the top of the file. Setting this value to 0 will treat all files as non-generated. Whenformat_generated_files is true, this option has no effect.

Possible values: any positive integer

Stable: No (tracking issue: #5080)

See also format_generated_files link here.

Format the metavariable matching patterns in macros.

Stable: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))

#### `false` (default):

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}
```

#### `true`:

```rust
macro_rules! foo {
    ($a:ident : $b:ty) => {
        $a(42): $b;
    };
    ($a:ident $b:ident $c:ident) => {
        $a = $b + $c;
    };
}
```

See also `format_macro_bodies`.

Format the metavariable matching patterns in macros.

Stable: No (tracking issue: [#3354](https://github.com/rust-lang/rustfmt/issues/3354))

#### `false` (default):

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}
```

#### `true`:

```rust
macro_rules! foo {
    ($a:ident : $b:ty) => {
        $a(42): $b;
    };
    ($a:ident $b:ident $c:ident) => {
        $a = $b + $c;
    };
}
```

See also `format_macro_bodies`.

Format the metavariable matching patterns in macros.

Stable: No (tracking issue: #3354)

false (default):

macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}

true:

macro_rules! foo {
    ($a:ident : $b:ty) => {
        $a(42): $b;
    };
    ($a:ident $b:ident $c:ident) => {
        $a = $b + $c;
    };
}

See also format_macro_bodies.

Format the bodies of declarative macro definitions.

Stable: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))

#### `true` (default):

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}
```

#### `false`:

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => { $a(42): $b; };
    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };
}
```

See also `format_macro_matchers`.

Format the bodies of declarative macro definitions.

Stable: No (tracking issue: [#3355](https://github.com/rust-lang/rustfmt/issues/3355))

#### `true` (default):

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}
```

#### `false`:

```rust
macro_rules! foo {
    ($a: ident : $b: ty) => { $a(42): $b; };
    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };
}
```

See also `format_macro_matchers`.

Format the bodies of declarative macro definitions.

Stable: No (tracking issue: #3355)

true (default):

macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}

false:

macro_rules! foo {
    ($a: ident : $b: ty) => { $a(42): $b; };
    ($a: ident $b: ident $c: ident) => { $a=$b+$c; };
}

See also format_macro_matchers.

Skip formatting the bodies of macro invocations with the following names.

rustfmt will not format any macro invocation for macros with names set in this list.
Including the special value "*" will prevent any macro invocations from being formatted.

Note: This option does not have any impact on how rustfmt formats macro definitions.

Possible values: a list of macro name idents, `["name_0", "name_1", ..., "*"]`

Stable: No (tracking issue: [#5346](https://github.com/rust-lang/rustfmt/issues/5346))

#### `[]` (default):

rustfmt will follow its standard approach to formatting macro invocations.

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).

```rust
lorem!(
    const _: u8 = 0;
);

ipsum!(
    const _: u8 = 0;
);
```

#### `["lorem"]`:

The named macro invocations will be skipped.

```rust
lorem!(
        const _: u8 = 0;
);

ipsum!(
    const _: u8 = 0;
);
```

#### `["*"]`:

The special selector `*` will skip all macro invocations.

```rust
lorem!(
        const _: u8 = 0;
);

ipsum!(
        const _: u8 = 0;
);
```

Skip formatting the bodies of macro invocations with the following names.

rustfmt will not format any macro invocation for macros with names set in this list.
Including the special value "*" will prevent any macro invocations from being formatted.

Note: This option does not have any impact on how rustfmt formats macro definitions.

Possible values: a list of macro name idents, ["name_0", "name_1", ..., "*"]

Stable: No (tracking issue: #5346)

[] (default):

rustfmt will follow its standard approach to formatting macro invocations.

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.

lorem!(
    const _: u8 = 0;
);

ipsum!(
    const _: u8 = 0;
);

["lorem"]:

The named macro invocations will be skipped.

lorem!(
        const _: u8 = 0;
);

ipsum!(
    const _: u8 = 0;
);

["*"]:

The special selector * will skip all macro invocations.

lorem!(
        const _: u8 = 0;
);

ipsum!(
        const _: u8 = 0;
);

Format string literals where necessary

Stable: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))

#### `false` (default):

```rust
fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing";
}
```

#### `true`:

```rust
fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \
                 consectetur adipiscing";
}
```

See also `max_width`.

Format string literals where necessary

Stable: No (tracking issue: [#3353](https://github.com/rust-lang/rustfmt/issues/3353))

#### `false` (default):

```rust
fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing";
}
```

#### `true`:

```rust
fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \
                 consectetur adipiscing";
}
```

See also `max_width`.

Format string literals where necessary

Stable: No (tracking issue: #3353)

false (default):

fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing";
}

true:

fn main() {
    let lorem = "ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet \
                 consectetur adipiscing";
}

See also max_width.

Use tab characters for indentation, spaces for alignment

Stable: Yes

#### `false` (default):

```rust
fn lorem() -> usize {
    42 // spaces before 42
}
```

#### `true`:

```rust
fn lorem() -> usize {
	42 // tabs before 42
}
```

See also: `tab_spaces`.

Use tab characters for indentation, spaces for alignment

Stable: Yes

#### `false` (default):

```rust
fn lorem() -> usize {
    42 // spaces before 42
}
```

#### `true`:

```rust
fn lorem() -> usize {
	42 // tabs before 42
}
```

See also: `tab_spaces`.

Use tab characters for indentation, spaces for alignment

Stable: Yes

false (default):

fn lorem() -> usize {
    42 // spaces before 42
}

true:

fn lorem() -> usize {
	42 // tabs before 42
}

See also: tab_spaces.

Control the case of the letters in hexadecimal literal values

Stable: No (tracking issue: [#5081](https://github.com/rust-lang/rustfmt/issues/5081))

Control the case of the letters in hexadecimal literal values

Stable: No (tracking issue: [#5081](https://github.com/rust-lang/rustfmt/issues/5081))

Control the case of the letters in hexadecimal literal values

Stable: No (tracking issue: #5081)

This option is deprecated and has been renamed to `show_parse_errors` to avoid confusion around the double negative default of `hide_parse_errors=false`.

Stable: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))

This option is deprecated and has been renamed to `show_parse_errors` to avoid confusion around the double negative default of `hide_parse_errors=false`.

Stable: No (tracking issue: [#3390](https://github.com/rust-lang/rustfmt/issues/3390))

This option is deprecated and has been renamed to show_parse_errors to avoid confusion around the double negative default of hide_parse_errors=false.

Stable: No (tracking issue: #3390)

Show parse errors if the parser failed to parse files.

Stable: No (tracking issue: [#5977](https://github.com/rust-lang/rustfmt/issues/5977))

Show parse errors if the parser failed to parse files.

Stable: No (tracking issue: [#5977](https://github.com/rust-lang/rustfmt/issues/5977))

Show parse errors if the parser failed to parse files.

Stable: No (tracking issue: #5977)

Skip formatting files and directories that match the specified pattern.
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.

Default value: format every file

Possible values: See an example below

Stable: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395))

### Example

If you want to ignore specific files, put the following to your config file:

```toml
ignore = [
    "src/types.rs",
    "src/foo/bar.rs",
]
```

If you want to ignore every file under `examples/`, put the following to your config file:

```toml
ignore = [
    "examples",
]
```

If you want to ignore every file under the directory where you put your rustfmt.toml:

```toml
ignore = ["/"]
```

If you want to allow specific paths that would otherwise be ignored, prefix those paths with a `!`:

```toml
ignore = ["bar_dir/*", "!bar_dir/*/what.rs"]
```

In this case, all files under `bar_dir` will be ignored, except files like `bar_dir/sub/what.rs`
or `bar_dir/another/what.rs`.

Skip formatting files and directories that match the specified pattern.
The pattern format is the same as .gitignore. Be sure to use Unix/forwardslash / style  paths. This path style will work on all platforms. Windows style paths with backslashes \ are not supported.

Default value: format every file

Possible values: See an example below

Stable: No (tracking issue: #3395)

Example

If you want to ignore specific files, put the following to your config file:

ignore = [
    "src/types.rs",
    "src/foo/bar.rs",
]

If you want to ignore every file under examples/, put the following to your config file:

ignore = [
    "examples",
]

If you want to ignore every file under the directory where you put your rustfmt.toml:

ignore = ["/"]

If you want to allow specific paths that would otherwise be ignored, prefix those paths with a !:

ignore = ["bar_dir/*", "!bar_dir/*/what.rs"]

In this case, all files under bar_dir will be ignored, except files like bar_dir/sub/what.rs
or bar_dir/another/what.rs.

Indent style of imports

Stable: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))

#### `"Block"` (default):

```rust
use foo::{
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
};
```

#### `"Visual"`:

```rust
use foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};
```

See also: `imports_layout`.

Indent style of imports

Stable: No (tracking issue: [#3360](https://github.com/rust-lang/rustfmt/issues/3360))

#### `"Block"` (default):

```rust
use foo::{
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
};
```

#### `"Visual"`:

```rust
use foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};
```

See also: `imports_layout`.

Indent style of imports

Stable: No (tracking issue: #3360)

"Block" (default):

use foo::{
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
};

"Visual":

use foo::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
          zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz};

See also: imports_layout.

Item layout inside a imports block

Stable: No (tracking issue: [#3361](https://github.com/rust-lang/rustfmt/issues/3361))

#### `"Mixed"` (default):

```rust
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};

use foo::{
    aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,
    eeeeeeeeeeeeeeeeee, ffffffffffffffffff,
};
```

#### `"Horizontal"`:

**Note**: This option forces all imports onto one line and may exceed `max_width`.

```rust
use foo::{xxx, yyy, zzz};

use foo::{aaa, bbb, ccc, ddd, eee, fff};
```

#### `"HorizontalVertical"`:

```rust
use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};

use foo::{
    aaaaaaaaaaaaaaaaaa,
    bbbbbbbbbbbbbbbbbb,
    cccccccccccccccccc,
    dddddddddddddddddd,
    eeeeeeeeeeeeeeeeee,
    ffffffffffffffffff,
};
```

#### `"Vertical"`:

```rust
use foo::{
    xxx,
    yyy,
    zzz,
};

use foo::{
    aaa,
    bbb,
    ccc,
    ddd,
    eee,
    fff,
};
```

Item layout inside a imports block

Stable: No (tracking issue: #3361)

"Mixed" (default):

use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};

use foo::{
    aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb, cccccccccccccccccc, dddddddddddddddddd,
    eeeeeeeeeeeeeeeeee, ffffffffffffffffff,
};

"Horizontal":

Note: This option forces all imports onto one line and may exceed max_width.

use foo::{xxx, yyy, zzz};

use foo::{aaa, bbb, ccc, ddd, eee, fff};

"HorizontalVertical":

use foo::{xxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz};

use foo::{
    aaaaaaaaaaaaaaaaaa,
    bbbbbbbbbbbbbbbbbb,
    cccccccccccccccccc,
    dddddddddddddddddd,
    eeeeeeeeeeeeeeeeee,
    ffffffffffffffffff,
};

"Vertical":

use foo::{
    xxx,
    yyy,
    zzz,
};

use foo::{
    aaa,
    bbb,
    ccc,
    ddd,
    eee,
    fff,
};

Horizontal HorizontalVertical Mixed Vertical

Indent on expressions or items.

Stable: No (tracking issue: [#3346](https://github.com/rust-lang/rustfmt/issues/3346))

### Array

#### `"Block"` (default):

```rust
fn main() {
    let lorem = vec![
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
        "elit",
    ];
}
```

#### `"Visual"`:

```rust
fn main() {
    let lorem = vec!["ipsum",
                     "dolor",
                     "sit",
                     "amet",
                     "consectetur",
                     "adipiscing",
                     "elit"];
}
```

### Control flow

#### `"Block"` (default):

```rust
fn main() {
    if lorem_ipsum
        && dolor_sit
        && amet_consectetur
        && lorem_sit
        && dolor_consectetur
        && amet_ipsum
        && lorem_consectetur
    {
        // ...
    }
}
```

#### `"Visual"`:

```rust
fn main() {
    if lorem_ipsum
       && dolor_sit
       && amet_consectetur
       && lorem_sit
       && dolor_consectetur
       && amet_ipsum
       && lorem_consectetur
    {
        // ...
    }
}
```

See also: `control_brace_style`.

### Function arguments

#### `"Block"` (default):

```rust
fn lorem() {}

fn lorem(ipsum: usize) {}

fn lorem(
    ipsum: usize,
    dolor: usize,
    sit: usize,
    amet: usize,
    consectetur: usize,
    adipiscing: usize,
    elit: usize,
) {
    // body
}
```

#### `"Visual"`:

```rust
fn lorem() {}

fn lorem(ipsum: usize) {}

fn lorem(ipsum: usize,
         dolor: usize,
         sit: usize,
         amet: usize,
         consectetur: usize,
         adipiscing: usize,
         elit: usize) {
    // body
}
```

### Function calls

#### `"Block"` (default):

```rust
fn main() {
    lorem(
        "lorem",
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
        "elit",
    );
}
```

#### `"Visual"`:

```rust
fn main() {
    lorem("lorem",
          "ipsum",
          "dolor",
          "sit",
          "amet",
          "consectetur",
          "adipiscing",
          "elit");
}
```

### Generics

#### `"Block"` (default):

```rust
fn lorem<
    Ipsum: Eq = usize,
    Dolor: Eq = usize,
    Sit: Eq = usize,
    Amet: Eq = usize,
    Adipiscing: Eq = usize,
    Consectetur: Eq = usize,
    Elit: Eq = usize,
>(
    ipsum: Ipsum,
    dolor: Dolor,
    sit: Sit,
    amet: Amet,
    adipiscing: Adipiscing,
    consectetur: Consectetur,
    elit: Elit,
) -> T {
    // body
}
```

#### `"Visual"`:

```rust
fn lorem<Ipsum: Eq = usize,
         Dolor: Eq = usize,
         Sit: Eq = usize,
         Amet: Eq = usize,
         Adipiscing: Eq = usize,
         Consectetur: Eq = usize,
         Elit: Eq = usize>(
    ipsum: Ipsum,
    dolor: Dolor,
    sit: Sit,
    amet: Amet,
    adipiscing: Adipiscing,
    consectetur: Consectetur,
    elit: Elit)
    -> T {
    // body
}
```

#### Struct

#### `"Block"` (default):

```rust
fn main() {
    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}
```

#### `"Visual"`:

```rust
fn main() {
    let lorem = Lorem { ipsum: dolor,
                        sit: amet };
}
```

See also: `struct_lit_single_line`, `indent_style`.

### Where predicates

#### `"Block"` (default):

```rust
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where
    Ipsum: Eq,
    Dolor: Eq,
    Sit: Eq,
    Amet: Eq,
{
    // body
}
```

#### `"Visual"`:

```rust
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
    where Ipsum: Eq,
          Dolor: Eq,
          Sit: Eq,
          Amet: Eq
{
    // body
}
```

Indent on expressions or items.

Stable: No (tracking issue: #3346)

Array

"Block" (default):

fn main() {
    let lorem = vec![
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
        "elit",
    ];
}

"Visual":

fn main() {
    let lorem = vec!["ipsum",
                     "dolor",
                     "sit",
                     "amet",
                     "consectetur",
                     "adipiscing",
                     "elit"];
}

Control flow

"Block" (default):

fn main() {
    if lorem_ipsum
        && dolor_sit
        && amet_consectetur
        && lorem_sit
        && dolor_consectetur
        && amet_ipsum
        && lorem_consectetur
    {
        // ...
    }
}

"Visual":

fn main() {
    if lorem_ipsum
       && dolor_sit
       && amet_consectetur
       && lorem_sit
       && dolor_consectetur
       && amet_ipsum
       && lorem_consectetur
    {
        // ...
    }
}

See also: control_brace_style.

Function arguments

"Block" (default):

fn lorem() {}

fn lorem(ipsum: usize) {}

fn lorem(
    ipsum: usize,
    dolor: usize,
    sit: usize,
    amet: usize,
    consectetur: usize,
    adipiscing: usize,
    elit: usize,
) {
    // body
}

"Visual":

fn lorem() {}

fn lorem(ipsum: usize) {}

fn lorem(ipsum: usize,
         dolor: usize,
         sit: usize,
         amet: usize,
         consectetur: usize,
         adipiscing: usize,
         elit: usize) {
    // body
}

Function calls

"Block" (default):

fn main() {
    lorem(
        "lorem",
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
        "elit",
    );
}

"Visual":

fn main() {
    lorem("lorem",
          "ipsum",
          "dolor",
          "sit",
          "amet",
          "consectetur",
          "adipiscing",
          "elit");
}

Generics

"Block" (default):

fn lorem<
    Ipsum: Eq = usize,
    Dolor: Eq = usize,
    Sit: Eq = usize,
    Amet: Eq = usize,
    Adipiscing: Eq = usize,
    Consectetur: Eq = usize,
    Elit: Eq = usize,
>(
    ipsum: Ipsum,
    dolor: Dolor,
    sit: Sit,
    amet: Amet,
    adipiscing: Adipiscing,
    consectetur: Consectetur,
    elit: Elit,
) -> T {
    // body
}

"Visual":

fn lorem<Ipsum: Eq = usize,
         Dolor: Eq = usize,
         Sit: Eq = usize,
         Amet: Eq = usize,
         Adipiscing: Eq = usize,
         Consectetur: Eq = usize,
         Elit: Eq = usize>(
    ipsum: Ipsum,
    dolor: Dolor,
    sit: Sit,
    amet: Amet,
    adipiscing: Adipiscing,
    consectetur: Consectetur,
    elit: Elit)
    -> T {
    // body
}

Struct

"Block" (default):

fn main() {
    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}

"Visual":

fn main() {
    let lorem = Lorem { ipsum: dolor,
                        sit: amet };
}

See also: struct_lit_single_line, indent_style.

Where predicates

"Block" (default):

fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where
    Ipsum: Eq,
    Dolor: Eq,
    Sit: Eq,
    Amet: Eq,
{
    // body
}

"Visual":

fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
    where Ipsum: Eq,
          Dolor: Eq,
          Sit: Eq,
          Amet: Eq
{
    // body
}

Write an item and its attribute on the same line if their combined width is below a threshold

Possible values: any positive integer

Stable: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))

### Example

#### `0` (default):
```rust
#[cfg(feature = "alloc")]
use core::slice;
```

#### `50`:
```rust
#[cfg(feature = "alloc")] use core::slice;
```

Write an item and its attribute on the same line if their combined width is below a threshold

Possible values: any positive integer

Stable: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))

### Example

#### `0` (default):
```rust
#[cfg(feature = "alloc")]
use core::slice;
```

#### `50`:
```rust
#[cfg(feature = "alloc")] use core::slice;
```

Write an item and its attribute on the same line if their combined width is below a threshold

Possible values: any positive integer

Stable: No (tracking issue: #3343)

Example

0 (default):

#[cfg(feature = "alloc")]
use core::slice;

50:

#[cfg(feature = "alloc")] use core::slice;

Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the `=>` operator.

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 contains neither multiple statements nor line comments.

Stable: No (tracking issue: [#3373](https://github.com/rust-lang/rustfmt/issues/3373))

#### `true` (default):

```rust
fn main() {
    match lorem {
        ipsum => {
            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)
        }
        dolor => println!("{}", sit),
        sit => foo(
            "foooooooooooooooooooooooo",
            "baaaaaaaaaaaaaaaaaaaaaaaarr",
            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
        ),
    }
}
```

#### `false`:

```rust
fn main() {
    match lorem {
        lorem =>
            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
        ipsum => println!("{}", sit),
        sit => foo(
            "foooooooooooooooooooooooo",
            "baaaaaaaaaaaaaaaaaaaaaaaarr",
            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
        ),
    }
}
```

See also: `match_block_trailing_comma`.

Controls whether arm bodies are wrapped in cases where the first line of the body cannot fit on the same line as the => operator.

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 contains neither multiple statements nor line comments.

Stable: No (tracking issue: #3373)

true (default):

fn main() {
    match lorem {
        ipsum => {
            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)
        }
        dolor => println!("{}", sit),
        sit => foo(
            "foooooooooooooooooooooooo",
            "baaaaaaaaaaaaaaaaaaaaaaaarr",
            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
        ),
    }
}

false:

fn main() {
    match lorem {
        lorem =>
            foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
        ipsum => println!("{}", sit),
        sit => foo(
            "foooooooooooooooooooooooo",
            "baaaaaaaaaaaaaaaaaaaaaaaarr",
            "baaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzz",
            "qqqqqqqqquuuuuuuuuuuuuuuuuuuuuuuuuuxxx",
        ),
    }
}

See also: match_block_trailing_comma.

Controls whether to include a leading pipe on match arms

Stable: Yes

#### `Never` (default):
```rust
// Leading pipes are removed from this:
// fn foo() {
//     match foo {
//         | "foo" | "bar" => {}
//         | "baz"
//         | "something relatively long"
//         | "something really really really realllllllllllllly long" => println!("x"),
//         | "qux" => println!("y"),
//         _ => {}
//     }
// }

// Becomes
fn foo() {
    match foo {
        "foo" | "bar" => {}
        "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        "qux" => println!("y"),
        _ => {}
    }
}
```

#### `Always`:
```rust
// Leading pipes are emitted on all arms of this:
// fn foo() {
//     match foo {
//         "foo" | "bar" => {}
//         "baz"
//         | "something relatively long"
//         | "something really really really realllllllllllllly long" => println!("x"),
//         "qux" => println!("y"),
//         _ => {}
//     }
// }

// Becomes:
fn foo() {
    match foo {
        | "foo" | "bar" => {}
        | "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        | "qux" => println!("y"),
        | _ => {}
    }
}
```

#### `Preserve`:
```rust
fn foo() {
    match foo {
        | "foo" | "bar" => {}
        | "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        | "qux" => println!("y"),
        _ => {}
    }

    match baz {
        "qux" => {}
        "foo" | "bar" => {}
        _ => {}
    }
}
```

Controls whether to include a leading pipe on match arms

Stable: Yes

Never (default):

// Leading pipes are removed from this:
// fn foo() {
//     match foo {
//         | "foo" | "bar" => {}
//         | "baz"
//         | "something relatively long"
//         | "something really really really realllllllllllllly long" => println!("x"),
//         | "qux" => println!("y"),
//         _ => {}
//     }
// }

// Becomes
fn foo() {
    match foo {
        "foo" | "bar" => {}
        "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        "qux" => println!("y"),
        _ => {}
    }
}

Always:

// Leading pipes are emitted on all arms of this:
// fn foo() {
//     match foo {
//         "foo" | "bar" => {}
//         "baz"
//         | "something relatively long"
//         | "something really really really realllllllllllllly long" => println!("x"),
//         "qux" => println!("y"),
//         _ => {}
//     }
// }

// Becomes:
fn foo() {
    match foo {
        | "foo" | "bar" => {}
        | "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        | "qux" => println!("y"),
        | _ => {}
    }
}

Preserve:

fn foo() {
    match foo {
        | "foo" | "bar" => {}
        | "baz"
        | "something relatively long"
        | "something really really really realllllllllllllly long" => println!("x"),
        | "qux" => println!("y"),
        _ => {}
    }

    match baz {
        "qux" => {}
        "foo" | "bar" => {}
        _ => {}
    }
}

Put a trailing comma after a block based match arm (non-block arms are not affected)

Stable: Yes

#### `false` (default):

```rust
fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        }
        Lorem::Dolor => println!("dolor"),
    }
}
```

#### `true`:

```rust
fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        },
        Lorem::Dolor => println!("dolor"),
    }
}
```

See also: `trailing_comma`, `match_arm_blocks`.

Put a trailing comma after a block based match arm (non-block arms are not affected)

Stable: Yes

#### `false` (default):

```rust
fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        }
        Lorem::Dolor => println!("dolor"),
    }
}
```

#### `true`:

```rust
fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        },
        Lorem::Dolor => println!("dolor"),
    }
}
```

See also: `trailing_comma`, `match_arm_blocks`.

Put a trailing comma after a block based match arm (non-block arms are not affected)

Stable: Yes

false (default):

fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        }
        Lorem::Dolor => println!("dolor"),
    }
}

true:

fn main() {
    match lorem {
        Lorem::Ipsum => {
            println!("ipsum");
        },
        Lorem::Dolor => println!("dolor"),
    }
}

See also: trailing_comma, match_arm_blocks.

Maximum width of each line

Possible values: any positive integer

Stable: Yes

See also `error_on_line_overflow`.

Maximum width of each line

Possible values: any positive integer

Stable: Yes

See also `error_on_line_overflow`.

Maximum width of each line

Possible values: any positive integer

Stable: Yes

See also error_on_line_overflow.

Merge multiple derives into a single one.

Stable: Yes

#### `true` (default):

```rust
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Foo {}
```

#### `false`:

```rust
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Bar {}

#[derive(Eq, PartialEq)]
#[derive(Debug)]
#[derive(Copy, Clone)]
pub enum Foo {}
```

Merge multiple derives into a single one.

Stable: Yes

#### `true` (default):

```rust
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Foo {}
```

#### `false`:

```rust
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Bar {}

#[derive(Eq, PartialEq)]
#[derive(Debug)]
#[derive(Copy, Clone)]
pub enum Foo {}
```

Merge multiple derives into a single one.

Stable: Yes

true (default):

#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Foo {}

false:

#[derive(Eq, PartialEq, Debug, Copy, Clone)]
pub enum Bar {}

#[derive(Eq, PartialEq)]
#[derive(Debug)]
#[derive(Copy, Clone)]
pub enum Foo {}

Controls how imports are structured in `use` statements. Imports will be merged or split to the configured level of granularity.

Similar to other `import` related configuration options, this option operates within the bounds of user-defined groups of imports. See `group_imports` for more information on import groups.

Note that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.

Stable: No (tracking issue: [#4991](https://github.com/rust-lang/rustfmt/issues/4991))

#### `Preserve` (default):

Do not change the granularity of any imports and preserve the original structure written by the developer.

```rust
use foo::b;
use foo::b::{f, g};
use foo::{a, c, d::e};
use qux::{h, i};
```

#### `Crate`:

Merge imports from the same crate into a single `use` statement. Conversely, imports from different crates are split into separate statements.

```rust
use foo::{
    a, b,
    b::{f, g},
    c,
    d::e,
};
use qux::{h, i};
```

#### `Module`:

Merge imports from the same module into a single `use` statement. Conversely, imports from different modules are split into separate statements.

```rust
use foo::b::{f, g};
use foo::d::e;
use foo::{a, b, c};
use qux::{h, i};
```

#### `Item`:

Flatten imports so that each has its own `use` statement.

```rust
use foo::a;
use foo::b;
use foo::b::f;
use foo::b::g;
use foo::c;
use foo::d::e;
use qux::h;
use qux::i;
```

#### `One`:

Merge all imports into a single `use` statement as long as they have the same visibility.

```rust
pub use foo::{x, y};
use {
    bar::{
        a,
        b::{self, f, g},
        c,
        d::e,
    },
    qux::{h, i},
};
```

Controls how imports are structured in use statements. Imports will be merged or split to the configured level of granularity.

Similar to other import related configuration options, this option operates within the bounds of user-defined groups of imports. See group_imports for more information on import groups.

Note that rustfmt will not modify the granularity of imports containing comments if doing so could potentially lose or misplace said comments.

Stable: No (tracking issue: #4991)

Preserve (default):

Do not change the granularity of any imports and preserve the original structure written by the developer.

use foo::b;
use foo::b::{f, g};
use foo::{a, c, d::e};
use qux::{h, i};

Crate:

Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.

use foo::{
    a, b,
    b::{f, g},
    c,
    d::e,
};
use qux::{h, i};

Module:

Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.

use foo::b::{f, g};
use foo::d::e;
use foo::{a, b, c};
use qux::{h, i};

Item:

Flatten imports so that each has its own use statement.

use foo::a;
use foo::b;
use foo::b::f;
use foo::b::g;
use foo::c;
use foo::d::e;
use qux::h;
use qux::i;

One:

Merge all imports into a single use statement as long as they have the same visibility.

pub use foo::{x, y};
use {
    bar::{
        a,
        b::{self, f, g},
        c,
        d::e,
    },
    qux::{h, i},
};

This option is deprecated. Use `imports_granularity = "Crate"` instead.

- **Default value**: `false`
- **Possible values**: `true`, `false`

#### `false` (default):

```rust
use foo::{a, c, d};
use foo::{b, g};
use foo::{e, f};
```

#### `true`:

```rust
use foo::{a, b, c, d, e, f, g};
```

## `newline_style`

Unix or Windows line endings

Stable: Yes

#### `Auto` (default):

The newline style is detected automatically on a per-file basis. Files
with mixed line endings will be converted to the first detected line
ending style.

#### `Native`

Line endings will be converted to `\r\n` on Windows and `\n` on all
other platforms.

#### `Unix`

Line endings will be converted to `\n`.

#### `Windows`

Line endings will be converted to `\r\n`.

This option is deprecated. Use imports_granularity = "Crate" instead.

Default value: false

Possible values: true, false

false (default):

use foo::{a, c, d};
use foo::{b, g};
use foo::{e, f};

true:

use foo::{a, b, c, d, e, f, g};

newline_style

Unix or Windows line endings

Stable: Yes

Auto (default):

The newline style is detected automatically on a per-file basis. Files
with mixed line endings will be converted to the first detected line
ending style.

Native

Line endings will be converted to \r\n on Windows and \n on all
other platforms.

Unix

Line endings will be converted to \n.

Windows

Line endings will be converted to \r\n.

Convert /* */ comments to // comments where possible

Stable: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))

#### `false` (default):

```rust
// Lorem ipsum:
fn dolor() -> usize {}

/* sit amet: */
fn adipiscing() -> usize {}
```

#### `true`:

```rust
// Lorem ipsum:
fn dolor() -> usize {}

// sit amet:
fn adipiscing() -> usize {}
```

Convert /* */ comments to // comments where possible

Stable: No (tracking issue: [#3350](https://github.com/rust-lang/rustfmt/issues/3350))

#### `false` (default):

```rust
// Lorem ipsum:
fn dolor() -> usize {}

/* sit amet: */
fn adipiscing() -> usize {}
```

#### `true`:

```rust
// Lorem ipsum:
fn dolor() -> usize {}

// sit amet:
fn adipiscing() -> usize {}
```

Convert /* */ comments to // comments where possible

Stable: No (tracking issue: #3350)

false (default):

// Lorem ipsum:
fn dolor() -> usize {}

/* sit amet: */
fn adipiscing() -> usize {}

true:

// Lorem ipsum:
fn dolor() -> usize {}

// sit amet:
fn adipiscing() -> usize {}

Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.

Stable: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))

#### `false` (default):

```rust
#![doc = "Example documentation"]

#[doc = "Example item documentation"]
pub enum Bar {}

/// Example item documentation
pub enum Foo {}
```

#### `true`:

```rust
//! Example documentation

/// Example item documentation
pub enum Foo {}
```

Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.

Stable: No (tracking issue: [#3351](https://github.com/rust-lang/rustfmt/issues/3351))

#### `false` (default):

```rust
#![doc = "Example documentation"]

#[doc = "Example item documentation"]
pub enum Bar {}

/// Example item documentation
pub enum Foo {}
```

#### `true`:

```rust
//! Example documentation

/// Example item documentation
pub enum Foo {}
```

Convert #![doc] and #[doc] attributes to //! and /// doc comments.

Stable: No (tracking issue: #3351)

false (default):

#![doc = "Example documentation"]

#[doc = "Example item documentation"]
pub enum Bar {}

/// Example item documentation
pub enum Foo {}

true:

//! Example documentation

/// Example item documentation
pub enum Foo {}

When structs, slices, arrays, and block/array-like macros are used as the last
argument in an expression list, allow them to overflow (like blocks/closures)
instead of being indented on a new line.

Stable: No (tracking issue: [#3370](https://github.com/rust-lang/rustfmt/issues/3370))

#### `false` (default):

```rust
fn example() {
    foo(ctx, |param| {
        action();
        foo(param)
    });

    foo(
        ctx,
        Bar {
            x: value,
            y: value2,
        },
    );

    foo(
        ctx,
        &[
            MAROON_TOMATOES,
            PURPLE_POTATOES,
            ORGANE_ORANGES,
            GREEN_PEARS,
            RED_APPLES,
        ],
    );

    foo(
        ctx,
        vec![
            MAROON_TOMATOES,
            PURPLE_POTATOES,
            ORGANE_ORANGES,
            GREEN_PEARS,
            RED_APPLES,
        ],
    );
}
```

#### `true`:

```rust
fn example() {
    foo(ctx, |param| {
        action();
        foo(param)
    });

    foo(ctx, Bar {
        x: value,
        y: value2,
    });

    foo(ctx, &[
        MAROON_TOMATOES,
        PURPLE_POTATOES,
        ORGANE_ORANGES,
        GREEN_PEARS,
        RED_APPLES,
    ]);

    foo(ctx, vec![
        MAROON_TOMATOES,
        PURPLE_POTATOES,
        ORGANE_ORANGES,
        GREEN_PEARS,
        RED_APPLES,
    ]);
}
```

When structs, slices, arrays, and block/array-like macros are used as the last
argument in an expression list, allow them to overflow (like blocks/closures)
instead of being indented on a new line.

Stable: No (tracking issue: #3370)

false (default):

fn example() {
    foo(ctx, |param| {
        action();
        foo(param)
    });

    foo(
        ctx,
        Bar {
            x: value,
            y: value2,
        },
    );

    foo(
        ctx,
        &[
            MAROON_TOMATOES,
            PURPLE_POTATOES,
            ORGANE_ORANGES,
            GREEN_PEARS,
            RED_APPLES,
        ],
    );

    foo(
        ctx,
        vec![
            MAROON_TOMATOES,
            PURPLE_POTATOES,
            ORGANE_ORANGES,
            GREEN_PEARS,
            RED_APPLES,
        ],
    );
}

true:

fn example() {
    foo(ctx, |param| {
        action();
        foo(param)
    });

    foo(ctx, Bar {
        x: value,
        y: value2,
    });

    foo(ctx, &[
        MAROON_TOMATOES,
        PURPLE_POTATOES,
        ORGANE_ORANGES,
        GREEN_PEARS,
        RED_APPLES,
    ]);

    foo(ctx, vec![
        MAROON_TOMATOES,
        PURPLE_POTATOES,
        ORGANE_ORANGES,
        GREEN_PEARS,
        RED_APPLES,
    ]);
}

Remove nested parens.

Default value: `true`,

Stable: Yes

#### `true` (default):
```rust
fn main() {
    (foo());
}
```

#### `false`:
```rust
fn main() {
    (foo());

    ((((foo()))));
}
```

Remove nested parens.

Default value: `true`,

Stable: Yes

#### `true` (default):
```rust
fn main() {
    (foo());
}
```

#### `false`:
```rust
fn main() {
    (foo());

    ((((foo()))));
}
```

Remove nested parens.

Default value: true,

Stable: Yes

true (default):

fn main() {
    (foo());
}

false:

fn main() {
    (foo());

    ((((foo()))));
}

Reorder impl items. `type` and `const` are put first, then macros and methods.

Stable: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))

#### `false` (default)

```rust
struct Dummy;

impl Iterator for Dummy {
    fn next(&mut self) -> Option<Self::Item> {
        None
    }

    type Item = i32;
}

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}
```

#### `true`

```rust
struct Dummy;

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}
```

Reorder impl items. `type` and `const` are put first, then macros and methods.

Stable: No (tracking issue: [#3363](https://github.com/rust-lang/rustfmt/issues/3363))

#### `false` (default)

```rust
struct Dummy;

impl Iterator for Dummy {
    fn next(&mut self) -> Option<Self::Item> {
        None
    }

    type Item = i32;
}

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}
```

#### `true`

```rust
struct Dummy;

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}
```

Reorder impl items. type and const are put first, then macros and methods.

Stable: No (tracking issue: #3363)

false (default)

struct Dummy;

impl Iterator for Dummy {
    fn next(&mut self) -> Option<Self::Item> {
        None
    }

    type Item = i32;
}

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}

true

struct Dummy;

impl Iterator for Dummy {
    type Item = i32;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}

Reorder import and extern crate statements alphabetically in groups (a group is
separated by a newline).

Stable: Yes

#### `true` (default):

```rust
use dolor;
use ipsum;
use lorem;
use sit;
```

#### `false`:

```rust
use lorem;
use ipsum;
use dolor;
use sit;
```

Reorder import and extern crate statements alphabetically in groups (a group is
separated by a newline).

Stable: Yes

#### `true` (default):

```rust
use dolor;
use ipsum;
use lorem;
use sit;
```

#### `false`:

```rust
use lorem;
use ipsum;
use dolor;
use sit;
```

Reorder import and extern crate statements alphabetically in groups (a group is
separated by a newline).

Stable: Yes

true (default):

use dolor;
use ipsum;
use lorem;
use sit;

false:

use lorem;
use ipsum;
use dolor;
use sit;

Controls the strategy for how consecutive imports are grouped together.

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.

Stable: No (tracking issue: [#5083](https://github.com/rust-lang/rustfmt/issues/5083))

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.

#### `Preserve` (default):

Preserve the source file's import groups.

```rust
use super::update::convert_publish_payload;
use chrono::Utc;

use alloc::alloc::Layout;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;

use std::sync::Arc;

use broker::database::PooledConnection;

use super::schema::{Context, Payload};
use crate::models::Event;
use core::f32;
```

#### `StdExternalCrate`:

Discard existing import groups, and create three groups for:
1. `std`, `core` and `alloc`,
2. external crates,
3. `self`, `super` and `crate` imports.

```rust
use alloc::alloc::Layout;
use core::f32;
use std::sync::Arc;

use broker::database::PooledConnection;
use chrono::Utc;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;

use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;
```

#### `One`:

Discard existing import groups, and create a single group for everything

```rust
use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;
use alloc::alloc::Layout;
use broker::database::PooledConnection;
use chrono::Utc;
use core::f32;
use juniper::{FieldError, FieldResult};
use std::sync::Arc;
use uuid::Uuid;
```

Controls the strategy for how consecutive imports are grouped together.

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.

Stable: No (tracking issue: #5083)

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.

Preserve (default):

Preserve the source file's import groups.

use super::update::convert_publish_payload;
use chrono::Utc;

use alloc::alloc::Layout;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;

use std::sync::Arc;

use broker::database::PooledConnection;

use super::schema::{Context, Payload};
use crate::models::Event;
use core::f32;

StdExternalCrate:

Discard existing import groups, and create three groups for:

std, core and alloc,

external crates,

self, super and crate imports.

use alloc::alloc::Layout;
use core::f32;
use std::sync::Arc;

use broker::database::PooledConnection;
use chrono::Utc;
use juniper::{FieldError, FieldResult};
use uuid::Uuid;

use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;

One:

Discard existing import groups, and create a single group for everything

use super::schema::{Context, Payload};
use super::update::convert_publish_payload;
use crate::models::Event;
use alloc::alloc::Layout;
use broker::database::PooledConnection;
use chrono::Utc;
use core::f32;
use juniper::{FieldError, FieldResult};
use std::sync::Arc;
use uuid::Uuid;

Reorder `mod` declarations alphabetically in group.

Stable: Yes

#### `true` (default)

```rust
mod a;
mod b;

mod dolor;
mod ipsum;
mod lorem;
mod sit;
```

#### `false`

```rust
mod b;
mod a;

mod lorem;
mod ipsum;
mod dolor;
mod sit;
```

**Note** `mod` with `#[macro_export]` will not be reordered since that could change the semantics
of the original source code.

Reorder `mod` declarations alphabetically in group.

Stable: Yes

#### `true` (default)

```rust
mod a;
mod b;

mod dolor;
mod ipsum;
mod lorem;
mod sit;
```

#### `false`

```rust
mod b;
mod a;

mod lorem;
mod ipsum;
mod dolor;
mod sit;
```

**Note** `mod` with `#[macro_export]` will not be reordered since that could change the semantics
of the original source code.

Reorder mod declarations alphabetically in group.

Stable: Yes

true (default)

mod a;
mod b;

mod dolor;
mod ipsum;
mod lorem;
mod sit;

false

mod b;
mod a;

mod lorem;
mod ipsum;
mod dolor;
mod sit;

Note mod with #[macro_export] will not be reordered since that could change the semantics
of the original source code.

Require a specific version of rustfmt. If you want to make sure that the
specific version of rustfmt is used in your CI, use this option.

Possible values: any published version (e.g. `"0.3.8"`)

Stable: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))

Require a specific version of rustfmt. If you want to make sure that the
specific version of rustfmt is used in your CI, use this option.

Possible values: any published version (e.g. `"0.3.8"`)

Stable: No (tracking issue: [#3386](https://github.com/rust-lang/rustfmt/issues/3386))

Require a specific version of rustfmt. If you want to make sure that the
specific version of rustfmt is used in your CI, use this option.

Possible values: any published version (e.g. "0.3.8")

Stable: No (tracking issue: #3386)

The width threshold for an array element to be considered "short".

The layout of an array is dependent on the length of each of its elements.
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.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

#### `10` (default):
```rust
fn main() {
    pub const FORMAT_TEST: [u64; 5] = [
        0x0000000000000000,
        0xaaaaaaaaaaaaaaaa,
        0xbbbbbbbbbbbbbbbb,
        0xcccccccccccccccc,
        0xdddddddddddddddd,
    ];
}
```
#### `20`:
```rust
fn main() {
    pub const FORMAT_TEST: [u64; 5] = [
        0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,
        0xdddddddddddddddd,
    ];
}
```
See also `max_width`.

The width threshold for an array element to be considered "short".

The layout of an array is dependent on the length of each of its elements.
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.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

10 (default):

fn main() {
    pub const FORMAT_TEST: [u64; 5] = [
        0x0000000000000000,
        0xaaaaaaaaaaaaaaaa,
        0xbbbbbbbbbbbbbbbb,
        0xcccccccccccccccc,
        0xdddddddddddddddd,
    ];
}

20:

fn main() {
    pub const FORMAT_TEST: [u64; 5] = [
        0x0000000000000000, 0xaaaaaaaaaaaaaaaa, 0xbbbbbbbbbbbbbbbb, 0xcccccccccccccccc,
        0xdddddddddddddddd,
    ];
}

See also max_width.

Don't reformat out of line modules

Stable: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3389))

Don't reformat out of line modules

Stable: No (tracking issue: [#3389](https://github.com/rust-lang/rustfmt/issues/3389))

Don't reformat out of line modules

Stable: No (tracking issue: #3389)

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_if_else_max_width` will take precedence.

See also `max_width` and `use_small_heuristics`

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_if_else_max_width` will take precedence.

See also `max_width` and `use_small_heuristics`

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.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for single_line_if_else_max_width will take precedence.

See also max_width and use_small_heuristics

Maximum line length for single line let-else statements.
See the [let-else statement section of the Rust Style Guide](https://github.com/rust-lang/rust/blob/master/src/doc/style-guide/src/statements.md#else-blocks-let-else-statements) for more details on when a let-else statement may be written on a single line.
A value of `0` (zero) means the divergent `else` block will always be formatted over multiple lines.
Note this occurs when `use_small_heuristics` is set to `Off`.

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `single_line_let_else_max_width` will take precedence.

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

#### `50` (default):

```rust
fn main() {
    let Some(w) = opt else { return Ok(()) };

    let Some(x) = opt else { return };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else {
        return;
    };
}
```

#### `0`:

```rust
fn main() {
    let Some(w) = opt else {
        return Ok(());
    };

    let Some(x) = opt else {
        return;
    };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else {
        return;
    };
}
```

#### `100`:

```rust
fn main() {
    let Some(w) = opt else { return Ok(()) };

    let Some(x) = opt else { return };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else { return };
}
```

See also `max_width` and `use_small_heuristics`

Maximum line length for single line let-else statements.
See the let-else statement section of the Rust Style Guide for more details on when a let-else statement may be written on a single line.
A value of 0 (zero) means the divergent else block will always be formatted over multiple lines.
Note this occurs when use_small_heuristics is set to Off.

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for single_line_let_else_max_width will take precedence.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

50 (default):

fn main() {
    let Some(w) = opt else { return Ok(()) };

    let Some(x) = opt else { return };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else {
        return;
    };
}

0:

fn main() {
    let Some(w) = opt else {
        return Ok(());
    };

    let Some(x) = opt else {
        return;
    };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else {
        return;
    };
}

100:

fn main() {
    let Some(w) = opt else { return Ok(()) };

    let Some(x) = opt else { return };

    let Some(y) = opt else {
        return;
    };

    let Some(z) = some_very_very_very_very_long_name else { return };
}

See also max_width and use_small_heuristics

Leave a space after the colon.

Stable: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))

#### `true` (default):

```rust
fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}
```

#### `false`:

```rust
fn lorem<T:Eq>(t:T) {
    let lorem:Dolor = Lorem {
        ipsum:dolor,
        sit:amet,
    };
}
```

See also: `space_before_colon`.

Leave a space after the colon.

Stable: No (tracking issue: [#3366](https://github.com/rust-lang/rustfmt/issues/3366))

#### `true` (default):

```rust
fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}
```

#### `false`:

```rust
fn lorem<T:Eq>(t:T) {
    let lorem:Dolor = Lorem {
        ipsum:dolor,
        sit:amet,
    };
}
```

See also: `space_before_colon`.

Leave a space after the colon.

Stable: No (tracking issue: #3366)

true (default):

fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}

false:

fn lorem<T:Eq>(t:T) {
    let lorem:Dolor = Lorem {
        ipsum:dolor,
        sit:amet,
    };
}

See also: space_before_colon.

Leave a space before the colon.

Stable: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))

#### `false` (default):

```rust
fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}
```

#### `true`:

```rust
fn lorem<T : Eq>(t : T) {
    let lorem : Dolor = Lorem {
        ipsum : dolor,
        sit : amet,
    };
}
```

See also: `space_after_colon`.

Leave a space before the colon.

Stable: No (tracking issue: [#3365](https://github.com/rust-lang/rustfmt/issues/3365))

#### `false` (default):

```rust
fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}
```

#### `true`:

```rust
fn lorem<T : Eq>(t : T) {
    let lorem : Dolor = Lorem {
        ipsum : dolor,
        sit : amet,
    };
}
```

See also: `space_after_colon`.

Leave a space before the colon.

Stable: No (tracking issue: #3365)

false (default):

fn lorem<T: Eq>(t: T) {
    let lorem: Dolor = Lorem {
        ipsum: dolor,
        sit: amet,
    };
}

true:

fn lorem<T : Eq>(t : T) {
    let lorem : Dolor = Lorem {
        ipsum : dolor,
        sit : amet,
    };
}

See also: space_after_colon.

Put spaces around the .., ..=, and ... range operators

Stable: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))

#### `false` (default):

```rust
fn main() {
    let lorem = 0..10;
    let ipsum = 0..=10;

    match lorem {
        1..5 => foo(),
        _ => bar,
    }

    match lorem {
        1..=5 => foo(),
        _ => bar,
    }

    match lorem {
        1...5 => foo(),
        _ => bar,
    }
}
```

#### `true`:

```rust
fn main() {
    let lorem = 0 .. 10;
    let ipsum = 0 ..= 10;

    match lorem {
        1 .. 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ..= 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ... 5 => foo(),
        _ => bar,
    }
}
```

Put spaces around the .., ..=, and ... range operators

Stable: No (tracking issue: [#3367](https://github.com/rust-lang/rustfmt/issues/3367))

#### `false` (default):

```rust
fn main() {
    let lorem = 0..10;
    let ipsum = 0..=10;

    match lorem {
        1..5 => foo(),
        _ => bar,
    }

    match lorem {
        1..=5 => foo(),
        _ => bar,
    }

    match lorem {
        1...5 => foo(),
        _ => bar,
    }
}
```

#### `true`:

```rust
fn main() {
    let lorem = 0 .. 10;
    let ipsum = 0 ..= 10;

    match lorem {
        1 .. 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ..= 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ... 5 => foo(),
        _ => bar,
    }
}
```

Put spaces around the .., ..=, and ... range operators

Stable: No (tracking issue: #3367)

false (default):

fn main() {
    let lorem = 0..10;
    let ipsum = 0..=10;

    match lorem {
        1..5 => foo(),
        _ => bar,
    }

    match lorem {
        1..=5 => foo(),
        _ => bar,
    }

    match lorem {
        1...5 => foo(),
        _ => bar,
    }
}

true:

fn main() {
    let lorem = 0 .. 10;
    let ipsum = 0 ..= 10;

    match lorem {
        1 .. 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ..= 5 => foo(),
        _ => bar,
    }

    match lorem {
        1 ... 5 => foo(),
        _ => bar,
    }
}

The maximum diff of width between struct fields to be aligned with each other.

Possible values: any non-negative integer

Stable: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))

#### `0` (default):

```rust
struct Foo {
    x: u32,
    yy: u32,
    zzz: u32,
}
```

#### `20`:

```rust
struct Foo {
    x:   u32,
    yy:  u32,
    zzz: u32,
}
```

The maximum diff of width between struct fields to be aligned with each other.

Possible values: any non-negative integer

Stable: No (tracking issue: [#3371](https://github.com/rust-lang/rustfmt/issues/3371))

#### `0` (default):

```rust
struct Foo {
    x: u32,
    yy: u32,
    zzz: u32,
}
```

#### `20`:

```rust
struct Foo {
    x:   u32,
    yy:  u32,
    zzz: u32,
}
```

The maximum diff of width between struct fields to be aligned with each other.

Possible values: any non-negative integer

Stable: No (tracking issue: #3371)

0 (default):

struct Foo {
    x: u32,
    yy: u32,
    zzz: u32,
}

20:

struct Foo {
    x:   u32,
    yy:  u32,
    zzz: u32,
}

Put small struct literals on a single line

Stable: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))

#### `true` (default):

```rust
fn main() {
    let lorem = Lorem { foo: bar, baz: ofo };
}
```

#### `false`:

```rust
fn main() {
    let lorem = Lorem {
        foo: bar,
        baz: ofo,
    };
}
```

See also: `indent_style`.

Put small struct literals on a single line

Stable: No (tracking issue: [#3357](https://github.com/rust-lang/rustfmt/issues/3357))

#### `true` (default):

```rust
fn main() {
    let lorem = Lorem { foo: bar, baz: ofo };
}
```

#### `false`:

```rust
fn main() {
    let lorem = Lorem {
        foo: bar,
        baz: ofo,
    };
}
```

See also: `indent_style`.

Put small struct literals on a single line

Stable: No (tracking issue: #3357)

true (default):

fn main() {
    let lorem = Lorem { foo: bar, baz: ofo };
}

false:

fn main() {
    let lorem = Lorem {
        foo: bar,
        baz: ofo,
    };
}

See also: indent_style.

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_lit_width` will take precedence.

See also `max_width`, `use_small_heuristics`, and `struct_lit_single_line`

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_lit_width` will take precedence.

See also `max_width`, `use_small_heuristics`, and `struct_lit_single_line`

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.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for struct_lit_width will take precedence.

See also max_width, use_small_heuristics, and struct_lit_single_line

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_variant_width` will take precedence.

See also `max_width` and `use_small_heuristics`

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

Possible values: any positive integer that is less than or equal to the value specified for `max_width`

Stable: Yes

By default this option is set as a percentage of `max_width` provided by `use_small_heuristics`, but a value set directly for `struct_variant_width` will take precedence.

See also `max_width` and `use_small_heuristics`

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.

Possible values: any positive integer that is less than or equal to the value specified for max_width

Stable: Yes

By default this option is set as a percentage of max_width provided by use_small_heuristics, but a value set directly for struct_variant_width will take precedence.

See also max_width and use_small_heuristics

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

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

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

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

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

Possible values: "2015", "2018", "2021", "2024" (unstable variant)

Stable: No

Number of spaces per tab

Possible values: any positive integer

Stable: Yes

#### `4` (default):

```rust
fn lorem() {
    let ipsum = dolor();
    let sit = vec![
        "amet consectetur adipiscing elit amet",
        "consectetur adipiscing elit amet consectetur.",
    ];
}
```

#### `2`:

```rust
fn lorem() {
  let ipsum = dolor();
  let sit = vec![
    "amet consectetur adipiscing elit amet",
    "consectetur adipiscing elit amet consectetur.",
  ];
}
```

See also: `hard_tabs`.

Number of spaces per tab

Possible values: any positive integer

Stable: Yes

#### `4` (default):

```rust
fn lorem() {
    let ipsum = dolor();
    let sit = vec![
        "amet consectetur adipiscing elit amet",
        "consectetur adipiscing elit amet consectetur.",
    ];
}
```

#### `2`:

```rust
fn lorem() {
  let ipsum = dolor();
  let sit = vec![
    "amet consectetur adipiscing elit amet",
    "consectetur adipiscing elit amet consectetur.",
  ];
}
```

See also: `hard_tabs`.

Number of spaces per tab

Possible values: any positive integer

Stable: Yes

4 (default):

fn lorem() {
    let ipsum = dolor();
    let sit = vec![
        "amet consectetur adipiscing elit amet",
        "consectetur adipiscing elit amet consectetur.",
    ];
}

2:

fn lorem() {
  let ipsum = dolor();
  let sit = vec![
    "amet consectetur adipiscing elit amet",
    "consectetur adipiscing elit amet consectetur.",
  ];
}

See also: hard_tabs.

How to handle trailing commas for lists

Stable: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))

#### `"Vertical"` (default):

```rust
fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}
```

#### `"Always"`:

```rust
fn main() {
    let Lorem { ipsum, dolor, sit, } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}
```

#### `"Never"`:

```rust
fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing
    } = elit;
}
```

See also: `match_block_trailing_comma`.

How to handle trailing commas for lists

Stable: No (tracking issue: [#3379](https://github.com/rust-lang/rustfmt/issues/3379))

#### `"Vertical"` (default):

```rust
fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}
```

#### `"Always"`:

```rust
fn main() {
    let Lorem { ipsum, dolor, sit, } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}
```

#### `"Never"`:

```rust
fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing
    } = elit;
}
```

See also: `match_block_trailing_comma`.

How to handle trailing commas for lists

Stable: No (tracking issue: #3379)

"Vertical" (default):

fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}

"Always":

fn main() {
    let Lorem { ipsum, dolor, sit, } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing,
    } = elit;
}

"Never":

fn main() {
    let Lorem { ipsum, dolor, sit } = amet;
    let Lorem {
        ipsum,
        dolor,
        sit,
        amet,
        consectetur,
        adipiscing
    } = elit;
}

See also: match_block_trailing_comma.

Add trailing semicolon after break, continue and return

Stable: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))

#### `true` (default):
```rust
fn foo() -> usize {
    return 0;
}
```

#### `false`:
```rust
fn foo() -> usize {
    return 0
}
```

Add trailing semicolon after break, continue and return

Stable: No (tracking issue: [#3378](https://github.com/rust-lang/rustfmt/issues/3378))

#### `true` (default):
```rust
fn foo() -> usize {
    return 0;
}
```

#### `false`:
```rust
fn foo() -> usize {
    return 0
}
```

Add trailing semicolon after break, continue and return

Stable: No (tracking issue: #3378)

true (default):

fn foo() -> usize {
    return 0;
}

false:

fn foo() -> usize {
    return 0
}

Determines if `+` or `=` are wrapped in spaces in the punctuation of types

Stable: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))

#### `"Wide"` (default):

```rust
fn lorem<Ipsum: Dolor + Sit = Amet>() {
    // body
}
```

#### `"Compressed"`:

```rust
fn lorem<Ipsum: Dolor+Sit=Amet>() {
    // body
}
```

Determines if `+` or `=` are wrapped in spaces in the punctuation of types

Stable: No (tracking issue: [#3364](https://github.com/rust-lang/rustfmt/issues/3364))

#### `"Wide"` (default):

```rust
fn lorem<Ipsum: Dolor + Sit = Amet>() {
    // body
}
```

#### `"Compressed"`:

```rust
fn lorem<Ipsum: Dolor+Sit=Amet>() {
    // body
}
```

Determines if + or = are wrapped in spaces in the punctuation of types

Stable: No (tracking issue: #3364)

"Wide" (default):

fn lorem<Ipsum: Dolor + Sit = Amet>() {
    // body
}

"Compressed":

fn lorem<Ipsum: Dolor+Sit=Amet>() {
    // body
}

Enable unstable features on the unstable channel.

Stable: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))

Enable unstable features on the unstable channel.

Stable: No (tracking issue: [#3387](https://github.com/rust-lang/rustfmt/issues/3387))

Enable unstable features on the unstable channel.

Stable: No (tracking issue: #3387)

Use field initialize shorthand if possible.

Stable: Yes

#### `false` (default):

```rust
struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
    let b = Foo { x: x, y: y, z: z };
}
```

#### `true`:

```rust
struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
}
```

Use field initialize shorthand if possible.

Stable: Yes

#### `false` (default):

```rust
struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
    let b = Foo { x: x, y: y, z: z };
}
```

#### `true`:

```rust
struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
}
```

Use field initialize shorthand if possible.

Stable: Yes

false (default):

struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
    let b = Foo { x: x, y: y, z: z };
}

true:

struct Foo {
    x: u32,
    y: u32,
    z: u32,
}

fn main() {
    let x = 1;
    let y = 2;
    let z = 3;
    let a = Foo { x, y, z };
}

This option can be used to simplify the management and bulk updates of the granular width configuration settings (`fn_call_width`, `attr_fn_like_width`, `struct_lit_width`, `struct_variant_width`, `array_width`, `chain_width`, `single_line_if_else_max_width`), that respectively control when formatted constructs are multi-lined/vertical based on width.

Note that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by `use_small_heuristics`.

Stable: Yes

#### `Default` (default):
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`.

The ratios are:
* `fn_call_width` - `60%`
* `attr_fn_like_width` - `70%`
* `struct_lit_width` - `18%`
* `struct_variant_width` - `35%`
* `array_width` - `60%`
* `chain_width` - `60%`
* `single_line_if_else_max_width` - `50%`
* `single_line_let_else_max_width` - `50%`

For example when `max_width` is set to `100`, the width settings are:
* `fn_call_width=60`
* `attr_fn_like_width=70`
* `struct_lit_width=18`
* `struct_variant_width=35`
* `array_width=60`
* `chain_width=60`
* `single_line_if_else_max_width=50`
* `single_line_let_else_max_width=50`

and when `max_width` is set to `200`:
* `fn_call_width=120`
* `attr_fn_like_width=140`
* `struct_lit_width=36`
* `struct_variant_width=70`
* `array_width=120`
* `chain_width=120`
* `single_line_if_else_max_width=100`
* `single_line_let_else_max_width=100`

```rust
enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit { amet: Consectetur, adipiscing: Elit },
}

fn main() {
    lorem(
        "lorem",
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
    );

    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };
    let lorem = Lorem { ipsum: dolor };

    let lorem = if ipsum { dolor } else { sit };
}
```

#### `Off`:
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.

```rust
enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit {
        amet: Consectetur,
        adipiscing: Elit,
    },
}

fn main() {
    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");

    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };

    let lorem = if ipsum {
        dolor
    } else {
        sit
    };
}
```

#### `Max`:
When `use_small_heuristics` is set to `Max`, then each granular width setting is set to the same value as `max_width`.

So if `max_width` is set to `200`, then all the width settings are also set to `200`.
* `fn_call_width=200`
* `attr_fn_like_width=200`
* `struct_lit_width=200`
* `struct_variant_width=200`
* `array_width=200`
* `chain_width=200`
* `single_line_if_else_max_width=200`
* `single_line_let_else_max_width=200`

```rust
enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit { amet: Consectetur, adipiscing: Elit },
}

fn main() {
    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");

    let lorem = Lorem { ipsum: dolor, sit: amet };

    let lorem = if ipsum { dolor } else { sit };
}
```

See also:
* `max_width`
* `fn_call_width`
* `attr_fn_like_width`
* `struct_lit_width`
* `struct_variant_width`
* `array_width`
* `chain_width`
* `single_line_if_else_max_width`
* `single_line_let_else_max_width`

This option can be used to simplify the management and bulk updates of the granular width configuration settings (fn_call_width, attr_fn_like_width, struct_lit_width, struct_variant_width, array_width, chain_width, single_line_if_else_max_width), that respectively control when formatted constructs are multi-lined/vertical based on width.

Note that explicitly provided values for the width configuration settings take precedence and override the calculated values determined by use_small_heuristics.

Stable: Yes

Default (default):

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.

The ratios are:

fn_call_width - 60%

attr_fn_like_width - 70%

struct_lit_width - 18%

struct_variant_width - 35%

array_width - 60%

chain_width - 60%

single_line_if_else_max_width - 50%

single_line_let_else_max_width - 50%

For example when max_width is set to 100, the width settings are:

fn_call_width=60

attr_fn_like_width=70

struct_lit_width=18

struct_variant_width=35

array_width=60

chain_width=60

single_line_if_else_max_width=50

single_line_let_else_max_width=50

and when max_width is set to 200:

fn_call_width=120

attr_fn_like_width=140

struct_lit_width=36

struct_variant_width=70

array_width=120

chain_width=120

single_line_if_else_max_width=100

single_line_let_else_max_width=100

enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit { amet: Consectetur, adipiscing: Elit },
}

fn main() {
    lorem(
        "lorem",
        "ipsum",
        "dolor",
        "sit",
        "amet",
        "consectetur",
        "adipiscing",
    );

    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };
    let lorem = Lorem { ipsum: dolor };

    let lorem = if ipsum { dolor } else { sit };
}

Off:

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.

enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit {
        amet: Consectetur,
        adipiscing: Elit,
    },
}

fn main() {
    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");

    let lorem = Lorem {
        ipsum: dolor,
        sit: amet,
    };

    let lorem = if ipsum {
        dolor
    } else {
        sit
    };
}

Max:

When use_small_heuristics is set to Max, then each granular width setting is set to the same value as max_width.

So if max_width is set to 200, then all the width settings are also set to 200.

fn_call_width=200

attr_fn_like_width=200

struct_lit_width=200

struct_variant_width=200

array_width=200

chain_width=200

single_line_if_else_max_width=200

single_line_let_else_max_width=200

enum Lorem {
    Ipsum,
    Dolor(bool),
    Sit { amet: Consectetur, adipiscing: Elit },
}

fn main() {
    lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");

    let lorem = Lorem { ipsum: dolor, sit: amet };

    let lorem = if ipsum { dolor } else { sit };
}

See also:

max_width

fn_call_width

attr_fn_like_width

struct_lit_width

struct_variant_width

array_width

chain_width

single_line_if_else_max_width

single_line_let_else_max_width

Replace uses of the try! macro by the ? shorthand

Stable: Yes

#### `false` (default):

```rust
fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;

    let lorem = try!(ipsum.map(|dolor| dolor.sit()));
}
```

#### `true`:

```rust
fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;
}
```

Replace uses of the try! macro by the ? shorthand

Stable: Yes

#### `false` (default):

```rust
fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;

    let lorem = try!(ipsum.map(|dolor| dolor.sit()));
}
```

#### `true`:

```rust
fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;
}
```

Replace uses of the try! macro by the ? shorthand

Stable: Yes

false (default):

fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;

    let lorem = try!(ipsum.map(|dolor| dolor.sit()));
}

true:

fn main() {
    let lorem = ipsum.map(|dolor| dolor.sit())?;
}

This option is deprecated and has been replaced by `style_edition`.
`version = "One"` is equivalent to `style_edition = "(2015|2018|2021)"` and
`version = "Two"` is equivalent to `style_edition = "2024"`

Stable: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))

### Example

```toml
version = "Two"
```

This option is deprecated and has been replaced by `style_edition`.
`version = "One"` is equivalent to `style_edition = "(2015|2018|2021)"` and
`version = "Two"` is equivalent to `style_edition = "2024"`

Stable: No (tracking issue: [#3383](https://github.com/rust-lang/rustfmt/issues/3383))

### Example

```toml
version = "Two"
```

This option is deprecated and has been replaced by style_edition.
version = "One" is equivalent to style_edition = "(2015|2018|2021)" and
version = "Two" is equivalent to style_edition = "2024"

Stable: No (tracking issue: #3383)

Example

version = "Two"

Forces the `where` clause to be laid out on a single line.

Stable: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))

#### `false` (default):

```rust
impl<T> Lorem for T
where
    Option<T>: Ipsum,
{
    // body
}
```

#### `true`:

```rust
impl<T> Lorem for T
where Option<T>: Ipsum
{
    // body
}
```

See also `brace_style`, `control_brace_style`.

Forces the `where` clause to be laid out on a single line.

Stable: No (tracking issue: [#3359](https://github.com/rust-lang/rustfmt/issues/3359))

#### `false` (default):

```rust
impl<T> Lorem for T
where
    Option<T>: Ipsum,
{
    // body
}
```

#### `true`:

```rust
impl<T> Lorem for T
where Option<T>: Ipsum
{
    // body
}
```

See also `brace_style`, `control_brace_style`.

Forces the where clause to be laid out on a single line.

Stable: No (tracking issue: #3359)

false (default):

impl<T> Lorem for T
where
    Option<T>: Ipsum,
{
    // body
}

true:

impl<T> Lorem for T
where Option<T>: Ipsum
{
    // body
}

See also brace_style, control_brace_style.

Break comments to fit on the line

Note that no wrapping will happen if:
1. The comment is the start of a markdown header doc comment
2. An URL was found in the comment

Stable: No (tracking issue: [#3347](https://github.com/rust-lang/rustfmt/issues/3347))

#### `false` (default):

```rust
// 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.

// 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.

// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.

/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.
struct Foo {}
```

#### `true`:

```rust
// 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.

// 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.

// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.

/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.
struct Foo {}
```

Break comments to fit on the line

Note that no wrapping will happen if:

The comment is the start of a markdown header doc comment

An URL was found in the comment

Stable: No (tracking issue: #3347)

false (default):

// 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.

// 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.

// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.

/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.
struct Foo {}

true:

// 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.

// 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.

// Information on the lorem ipsum can be found at the following url: https://en.wikipedia.org/wiki/Lorem_ipsum. Its text is: 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.

/// # This doc comment is a very long header (it starts with a '#'). Had it not been a header it would have been wrapped. But because it is a header, it will not be. That is because wrapping a markdown header breaks it.
struct Foo {}

Provide a JSON object that satisfies the schema "rustfmt". Here are the required top‑level fields: none (all optional). Return only the valid JSON object.