We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Finds usages of is_digit that can be replaced with is_ascii_digit or is_ascii_hexdigit.
is_digit
is_ascii_digit
is_ascii_hexdigit
It is simpler since the radix does not need to be specified.
None.
fn bad(c: char) { c.is_digit(10); c.is_digit(16); }
Could be written as:
fn good(c: char) { c.is_ascii_digit(); c.is_ascii_hexdigit(); }
The text was updated successfully, but these errors were encountered:
can I work on this issue?
Sorry, something went wrong.
@rajcspsg go for it!
@camsteffen This issue seems to not have made much progress. Can I submit my solution instead?
I think @rajcspsg is still working on this at #6400.
@rustbot claim
is_digit_ascii_radix
dbcd828
pitaj
Successfully merging a pull request may close this issue.
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: