Skip to content
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

Use empty block instead of unit type for needless return #4262

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

bara86
Copy link
Contributor

@bara86 bara86 commented Jul 8, 2019

fixes #4238

changelog: Use empty block instead of unit type for needless return

@flip1995
Copy link
Member

flip1995 commented Jul 9, 2019

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 9, 2019

📌 Commit 2fb73fe has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Jul 9, 2019

⌛ Testing commit 2fb73fe with merge 1987bf7...

bors added a commit that referenced this pull request Jul 9, 2019
Use empty block instead of unit type for needless return

fixes #4238

changelog: Use empty block instead of unit type for needless return
@bors
Copy link
Collaborator

bors commented Jul 9, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing 1987bf7 to master...

@bors bors merged commit 2fb73fe into rust-lang:master Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

needless_return: different warnings for equivalent code (return from match arm)
3 participants