Skip to content

fix: Fix indenting for child if expr with an else branch for "unnecessary else" diagnostic #16575

New issue

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

Conversation

davidsemakula
Copy link
Contributor

@davidsemakula davidsemakula commented Feb 15, 2024

Indenting for this if-else expression is one level off without this fix.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 15, 2024
@davidsemakula
Copy link
Contributor Author

Closing because changes have been added to #16567

ShoyuVanilla added a commit to ShoyuVanilla/rust-analyzer that referenced this pull request Feb 16, 2024
@davidsemakula davidsemakula deleted the unnecessary-else-diagnostic-indent-fix branch February 17, 2024 08:33
davidsemakula pushed a commit to davidsemakula/rust-analyzer that referenced this pull request Feb 19, 2024
davidsemakula pushed a commit to davidsemakula/rust-analyzer that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants