mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
12 lines
291 B
Rust
12 lines
291 B
Rust
// rustfmt-attributes_on_same_line_as_field: true
|
|
// Option to place attributes on the same line as fields where possible
|
|
|
|
struct Lorem {
|
|
#[ serde(rename = "Ipsum") ]
|
|
ipsum: usize,
|
|
#[ serde(rename = "Dolor") ]
|
|
dolor: usize,
|
|
#[ serde(rename = "Amet") ]
|
|
amet: usize,
|
|
}
|