useless_transmute being raised when it's doing multiple casts #1545
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
L-unnecessary
Lint: Warn about unnecessary code
T-middle
Type: Probably requires verifiying types
Here's a code sample:
That seems kind of silly. It's not useless; it's doing two casts at once (reference to pointer, and then pointer to different pointer) and saving quite a bit of typing.
The text was updated successfully, but these errors were encountered: