Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QObject and QGadget derives produce clippy warnings #291

Open
lylythechosenone opened this issue Aug 11, 2023 · 0 comments
Open

QObject and QGadget derives produce clippy warnings #291

lylythechosenone opened this issue Aug 11, 2023 · 0 comments

Comments

@lylythechosenone
Copy link

lylythechosenone commented Aug 11, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant