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

Fix too_many_lines false positive #4490

Merged
merged 2 commits into from Sep 4, 2019
Merged

Fix too_many_lines false positive #4490

merged 2 commits into from Sep 4, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 3, 2019

changelog: Fix too_many_lines false positive

@ghost
Copy link
Author

ghost commented Sep 3, 2019

When fixing the violations, I just added an allow if I couldn't think of a sensible way of splitting the function.

@flip1995
Copy link
Member

flip1995 commented Sep 4, 2019

Allowing this lint on functions, that are just big match statements, is fine IMO. (One could find similar bodies and extract them to functions, but that makes the code not always more readable)

The check_tts function should be refactored sooner or later though. But not in this PR.

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 4, 2019

📌 Commit 232dd43 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Sep 4, 2019

⌛ Testing commit 232dd43 with merge a2c4b2b...

bors added a commit that referenced this pull request Sep 4, 2019
Fix `too_many_lines` false positive

changelog: Fix `too_many_lines` false positive
@bors
Copy link
Contributor

bors commented Sep 4, 2019

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

@bors bors merged commit 232dd43 into rust-lang:master Sep 4, 2019
@ghost ghost deleted the fix-4364 branch September 6, 2019 06:06
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.

2 participants