Closed
Description
When using two or more if let
chained, rustfmt
won't format the code block.
The following code:
fn main() {
if let Some(()) = Option::default() && let Some(()) = Option::default()
{
}
}
Won't be formatted, as expected:
fn main() {
if let Some(()) = Option::default() && let Some(()) = Option::default() {}
}
If using a single if let
, everything works fine.
Metadata
Metadata
Assignees
Labels
No labels