Skip to content
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

Spotting not complete Ascii letters range #7269

Closed
leonardo-m opened this issue May 24, 2021 · 0 comments · Fixed by #8918
Closed

Spotting not complete Ascii letters range #7269

leonardo-m opened this issue May 24, 2021 · 0 comments · Fixed by #8918
Labels
A-lint Area: New lints

Comments

@leonardo-m
Copy link

In this page:
https://rosettacode.org/wiki/Move-to-front_algorithm#Rust

I've seen the code:
(b'a'..b'z').collect()

While I suspect the correct code is:
(b'a' ..= b'z').collect()

Is this something Clippy should warn about? Perhaps in pedantic mode?

@leonardo-m leonardo-m added the C-bug Category: Clippy is not doing the correct thing label May 24, 2021
@giraffate giraffate added A-lint Area: New lints and removed C-bug Category: Clippy is not doing the correct thing labels May 25, 2021
@bors bors closed this as completed in 2466a05 May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants