Closed
Description
Description
Currently, clippy::useless_conversion
will still be emitted even on type aliases, for example:
HWND::from(0isize)
Clippy will suggest:
0isize
This conveys the type worse, but looking over rustc_hir, it doesn't seem whether it's a type alias is available so I don't know if this is possible to implement. I saw a few things relating to whether it's a trait alias but not whether it's a type alias. If this is possible, I'm happy to implement this 🙂
Version
rustc 1.71.0-nightly (9ecda8de8 2023-04-30)
binary: rustc
commit-hash: 9ecda8de85ce893cc3fc748ab06be0b8250147a7
commit-date: 2023-04-30
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2
Additional Labels
@rustbot label +C-enhancement