-
Notifications
You must be signed in to change notification settings - Fork 1.6k
6399 Lint: is_ascii_digit instead of is_digit #6400
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
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ebroto (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
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.
Hi @rajcspsg and welcome to Clippy!
The objective of this issue is to create a lint that detects c.is_digit(10)
and c.is_digit(16)
and suggests changing that code to c.is_ascii_digit()
and c.is_ascii_hexdigit()
respectively. After implementing that lint, running clippy will suggest the changes you made to the code manually.
Take a look at the following docs:
These will help you to get started. In case you have any doubt, you can ask a question on Zulip or in this same PR.
Also, you can take a look at other PRs that add lints, like #6394, to get an idea of what is needed. Happy hacking! |
ping from triage @rajcspsg. Do you have any questions on how to proceed here? |
@giraffate - I'm facing below issue in my local
I tried these options -
Even after I did |
@rajcspsg Can you do a rebase? |
According to the triage procedure, I should close this PR as there has been no activity and two weeks have passed since the last ping. @rajcspsg did @giraffate suggestions help? Can we help you with another issue? Do not hesitate to reopen this in case you are working on it. |
@rustbot label -S-inactive-closed |
changelog: none