Skip to content

decimal_literal_representation suggestion drops type suffixes #4763

@ghost

Description

The suggestion below doesn't include the usize suffix.

#[warn(clippy::decimal_literal_representation)]

fn main() {
    let _ = 32_773usize;
}
warning: integer literal has a better hexadecimal representation
 --> src/main.rs:4:13
  |
4 |     let _ = 32_773usize;
  |             ^^^^^^^^^^^ help: consider: `0x8005`
  |

I'm busy with the fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-suggestion-causes-errorIssue: The suggestions provided by this Lint cause an ICE/error when applied

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions