(RS-W1099) Found manual implementation of a char::is_ascii_*
method
#4808
Labels
E-good_first_issue
Experience Level - Good for newcomers
char::is_ascii_*
method
#4808
Description
To check if a character falls under specific ascii category, consider using the builtin methods, such as, -
char::is_ascii_lowercase
, instead of checking if it belongs to the respective range with('a'..='z').contains(_)
, and, -char::is_ascii_uppercase
-char::is_ascii_digit
Respectively, for using the builtin method improves readability and cognitive complexity of code.Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/tari-project/tari/issue/RS-W1099/occurrences/
The text was updated successfully, but these errors were encountered: