Closed as not planned
Description
I think this is a bug. Consider this program playground
fn main() {
let x: Option<i32> = None;
let Some(y) = x else {
return;
};
println!("{y}");
}
I think the extra spaces on line 3, between x
and else
, should be removed by rustfmt. But on current stable they aren't.
Metadata
Metadata
Assignees
Labels
No labels