Skip to content

Lint for warning on division of integer literals #109

@gsingh93

Description

@gsingh93

It would be nice to warn the user if they wrote an expression like 1/2 and meant 0.5. There is also an open issue for this in Rust: rust-lang/rust#21737

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-ASTType: Requires working with the ASTgood 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