-
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
Lint: is_ascii_digit instead of is_digit #6399
Labels
Comments
flip1995
added
the
good-first-issue
These issues are a good way to get started with Clippy
label
Nov 29, 2020
can I work on this issue? |
@rajcspsg go for it! |
bengsparks
added a commit
to bengsparks/rust-clippy
that referenced
this issue
Dec 24, 2020
bengsparks
added a commit
to bengsparks/rust-clippy
that referenced
this issue
Dec 24, 2020
@camsteffen |
@rustbot claim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
What it does
Finds usages of
is_digit
that can be replaced withis_ascii_digit
oris_ascii_hexdigit
.Categories (optional)
It is simpler since the radix does not need to be specified.
Drawbacks
None.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: