cargo-tomlfmt icon indicating copy to clipboard operation
cargo-tomlfmt copied to clipboard

Cargo workspace member list formatted on a single line

Open luckysori opened this issue 5 years ago • 1 comments

If you run cargo tomlfmt on a Cargo.toml file which configures a workspace, the list of members of the workspace is formatted to be on a single line. E.g.

[workspace]
members = [ "crate1", "crate2" ] 

It would be preferable to keep each member on separate lines, either by default or via configuration. E.g.

[workspace]
members = [ 
    "crate1", 
    "crate2" 
] 

luckysori avatar Feb 19 '19 04:02 luckysori

Cool! I dont know I could fix it quickly but will take a look at.

tbrand avatar Feb 19 '19 13:02 tbrand