Skip to content

Spotting not complete Ascii letters range #7269

Closed
@leonardo-m

Description

@leonardo-m

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions