Closed
Description
Unless struct patterns contain only shorthand variables, they seem to almost always split across multiple lines -- I find this a bit over-eager. For example:
fn foo() {
let Answer { subst, ambiguous: _ } = some_struct;
}
formats to:
fn foo() {
let Answer {
subst,
ambiguous: _,
} = some_struct;
}
which seems unnecessary. I tend to use a lot of struct unpacking like that as a way to ensure that if new fields are added I will get compliation errors. Spreading things across multiple lines here makes my code quite spread out vertically.
Sorry if I'm duplicating things! I did a brief search over the issues and didn't find an obvious duplicate.
Version: 0.2.8-nightly ( )
Configuration: None
Metadata
Metadata
Assignees
Labels
No labels