Preserve hex literals in match
ranges
#11461
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
match
ranges
#11461
Description
I am sorry if there is a lint/option for this already. I couldn't find any though.
Below is code from
DNGlab
, a CLI to convert camera RAW files to DNG format.Hex literals are used with intent in the codebase to match vendor documentation about hardware, e.g. lenses:
clippy --fix
turns this into this:It would be great if the hex literals could be preserved here, i.e.
clippy
would instead suggest/generate:Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: