Unnecessary curve brackets in suggestion generated by [unnecessary_cast
] lint
#14640
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
Suggestion generated by this lint have unnecessary curve brackets. It also auto apply this brackets with
--fix
flag.Reproducer
I tried this code:
I expected to see this happen when I run
cargo clippy
:Instead, this happened:
My rust version:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: