Skip to content

QObject and QGadget derives produce clippy warnings #291

Open
@lylythechosenone

Description

@lylythechosenone

In seemingly all situations, QGadget produces a clippy::transmute_ptr_to_ref warning.
In a struct with signals, QObject produces a clippy::useless_transmute for each signal.

For both of these, the transmute should be replaced. For the first, &*val can be used instead of transmute(val). For the second, val as *const _ can be used instead of transmute(val).

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