Open Kyuuhachi opened 8 months ago
Consider the following snippet.
fn foo() -> fn(i32) -> i32 { |a| { ; a } }
Rustfmt starts by removing that spurious semicolon.
fn foo() -> fn(i32) -> i32 { |a| { a } }
If run again, it notices that the closure fits on one line.
fn foo() -> fn(i32) -> i32 { |a| a }
@rustbot claim
Consider the following snippet.
Rustfmt starts by removing that spurious semicolon.
If run again, it notices that the closure fits on one line.