Skip to content

cast-lossless is too strict #4528

Closed
@nrc

Description

@nrc

cast-lossless includes issuing a warning about what might happen if you change your code: warning: casting u8 to i32 may become silently lossy if you later change the type. Given that the cast is totally safe with the code as written, this seems like it should be a pedantic lint, rather than a default one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions