-
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
Non ascii in sigle literal #8034
Conversation
r? @llogiq (rust-highfive has picked a reviewer for you, use r? to override) |
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.
Just a small wording nit, otherwise this looks good. Perhaps you want to rename check_str
to check_str_or_char
or check_non_ascii
or something, but if not, that's OK, too.
clippy_lints/src/unicode.rs
Outdated
@@ -28,7 +28,7 @@ declare_clippy_lint! { | |||
|
|||
declare_clippy_lint! { | |||
/// ### What it does | |||
/// Checks for non-ASCII characters in string literals. | |||
/// Checks for non-ASCII characters in string literals or char. |
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.
/// Checks for non-ASCII characters in string literals or char. | |
/// Checks for non-ASCII characters in string and char literals. |
Thank you! @bors r+ |
📌 Commit cd8b724 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fix: #8013
changelog:
non_ascii_literal
warn against non-ASCII withinchar
, not juststrings