-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add a new lint for repeat().take()
that can be replaced with repeat_n()
#13858
base: master
Are you sure you want to change the base?
Conversation
55203fc
to
33a5b21
Compare
f3ac7b1
to
8e422ea
Compare
repeat().take()
repeat().take()
that can be replaced with repeat_n()
546bbf1
to
672d7c0
Compare
@y21 Thank you for your thorough review! Looks like I was able to fix the reviewed items. Could you please take a look again? |
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 noticed this lint should suggest to use core::iter::repeat_n
in a no_std
environment. Therefore, I'll make a change.
r? @y21 |
This comment has been minimized.
This comment has been minimized.
Conflicts now resolved. |
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.
Looks basically good to me, just a few small suggestions then it's ready for the FCP I would say
@y21 Thank you for your review! All of your suggestions seem to have been resolved now. |
Any chance of merging this? |
@y21 Updated the changelog line to deal with the updated CI that checks the contents of it. |
Hey, sorry for the long wait here. This all looks good to me, thank you! I've created a thread on Zulip for the usual FCP process: https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/FCP.3A.20manual_repeat_n If nothing comes up, we can merge it |
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.
Actually, one very small thing that I forgot to comment on. Also would be nice if you could squash your commits a bit :)
50635d6
to
25f75ff
Compare
Conflicts resolved. |
close #13271
changelog: add new
manual_repeat_n
lint