Skip to content

[as_conversions] No alternative exists to float to/from int conversion using as #5122

@casey

Description

@casey

The as_conversions lint warns if the as operator is used for int-to-float and float-to-int conversions, however I don't believe that there is actually an alternative.

It might be good to relax the lint so it doesn't complain if either argument is a float until an alternative exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions