-
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_literal example should be more verbose #4117
Comments
You can find the documentation of this lint here: rust-clippy/clippy_lints/src/unicode.rs Lines 35 to 38 in 58e1213
If you want to do some extra work, to make the lint even better, you can change these rust-clippy/clippy_lints/src/unicode.rs Lines 102 to 115 in 58e1213
with The |
Improve non ascii literal This PR improves the example of the [non_ascii_literal](https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal) lint. It also makes it auto-fixable. Please review. This is my first PR to this project. (Thanks @flip1995 for the help :) changelog: none fixes rust-lang#4117
Currently, the doc for non_ascii_literal isn't showing what to do better.
I think including a "Could be written:" example would be helpful. Just like clippy does in the console.
Instead of just
let x = "Hä?"
.Something like this would be better.
I can make a PR, if someone tells me where I can find this lint :)
The text was updated successfully, but these errors were encountered: