Skip to content

On 32-bit, usize as f64 recommends f64::from(usize) #3689

@tspiteri

Description

@tspiteri

On i686, the cast_lossless lint recommends using f64::from(len) instead of len as f64 where len is of type usize. This would change the behaviour on x86_64 fail to compile.

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 appliedL-suggestionLint: Improving, adding or fixing lint suggestionsgood 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