mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 07:24:00 +00:00
![est31](/assets/img/avatar_default.png)
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
118 B
XML
7 lines
118 B
XML
// rustfmt-space_after_struct_lit_field_colon: true
|
|
|
|
const LOREM: Lorem = Lorem {
|
|
ipsum: dolor,
|
|
sit: amet,
|
|
};
|