We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 }
The text was updated successfully, but these errors were encountered:
@rustbot claim
Sorry, something went wrong.
Ignoring empty statements in closures. Resolve rust-lang#6116
5587fd9
83496fb
36d9455
rscprof
No branches or pull requests
Consider the following snippet.
Rustfmt starts by removing that spurious semicolon.
If run again, it notices that the closure fits on one line.
The text was updated successfully, but these errors were encountered: