clippy::unnecessary_cast does not warn on basic usage #9562
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
When casting the result of a function to the same type,
clippy::unnecessary_cast
doesn't warnLint Name
clippy::unnecessary_cast
Reproducer
I tried this code:
I expected to see this happen: Warning that the cast is unnecessary
Instead, this happened: No warning
Version
No response
The text was updated successfully, but these errors were encountered: