Use span_lint_and_sugg
instead of span_lint
in unnecessary_cast
#6874
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
The lines below should be replaced by
span_lint_and_sugg
orlint_unnecessary_cast
as another part ofunnecessary_cast
does.rust-clippy/clippy_lints/src/casts/unnecessary_cast.rs
Lines 49 to 57 in 3ed0bcc
The text was updated successfully, but these errors were encountered: