-
Notifications
You must be signed in to change notification settings - Fork 963
Open
Labels
A-call-chainsArea: method call chainsArea: method call chainsA-stringsArea: string literalsArea: string literalsI-poor-formattingIssue: poor formattingIssue: poor formattingP-lowLow priorityLow priorityS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR
Description
Rustfmt is not formatting the let a=0; part in this reduced testcase:
fn f() {
let mut a = Vec::new();
a.push(match 0 {
0 => {let a=0;""}
_ => r#"
--------------------loong line----------------------------------------------------------------------.
"#,
});
}I am using rustfmt version:
rustfmt 0.99.6-nightly (750b252 2018-10-18)
epidemian and paul-hansen
Metadata
Metadata
Assignees
Labels
A-call-chainsArea: method call chainsArea: method call chainsA-stringsArea: string literalsArea: string literalsI-poor-formattingIssue: poor formattingIssue: poor formattingP-lowLow priorityLow priorityS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR