-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix result_large_err FN on closures
#16277
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
base: master
Are you sure you want to change the base?
Conversation
|
Lintcheck changes for 3cf9fa5
This comment will be updated if you push new changes |
| return; | ||
| } | ||
|
|
||
| let subject = if is_closure { "closure" } else { "function" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why take a boolean just to convert it to a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to not pass a &'static str everywhere, and I think using an enum might be a overkill, so I choose to pass a boolean here
Closes #16249
changelog: [
result_large_err] fix FN on closures