mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
aa4cd311bb
In Rust, colons are used for three purposes: * Type annotations, including type ascription * Trait bounds * Struct literal fields This commit adds options for the last missing of the three purposes, struct literal fields.
7 lines
119 B
XML
7 lines
119 B
XML
// rustfmt-space_after_struct_lit_field_colon: true
|
|
|
|
const LOREM: Lorem = Lorem {
|
|
ipsum:dolor,
|
|
sit : amet,
|
|
};
|