-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
I think that unreadable_literal rules should be different for hex numbers.
As an example, it suggests to replace 0xabcdef with 0xab_cdef, which arguably makes it less readable.
I would suggest to break hex numbers into groups of 4, then it will replace 0xabcdef01 with 0xabcd_ef01, but leave 0xabcdef as it is.
Artur-Sulej
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy