-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-categoryArea: Categorization of lintsArea: Categorization of lintsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
I just found unseparated_literal_suffix with rust-bakery/nom#1387 and I believe this have never been talk about:
- This has been advice by unnecessary_cast and so I have a problem,
0 as u8is very clear, clippy lint to just typed the0make sense to me, but then advice to add an_to make it more clear ? when the original code is very clear ? 0u8is used in a LOT in rust literature without any problem I don't think it's more unclear than0_u80_u8is longer to write- rustfmt doesn't fmt
0u8to0_u8 - there is no talk about this
- never see
0_u8anywhere before
Thus I don't understand the lint (and the consequence to other lint) come a little from nowhere in my opinion.
Metadata
Metadata
Assignees
Labels
A-categoryArea: Categorization of lintsArea: Categorization of lintsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy