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
if let
When using two or more if let chained, rustfmt won't format the code block.
rustfmt
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.
Here is a playground example.
The text was updated successfully, but these errors were encountered:
nvm, it seems to be already reported on: #5203 (comment)
Sorry, something went wrong.
No branches or pull requests
When using two or more
if let
chained,rustfmt
won't format the code block.The following code:
Won't be formatted, as expected:
If using a single
if let
, everything works fine.Here is a playground example.
The text was updated successfully, but these errors were encountered: