ptr-arg warning on reference to type alias #7699
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: ptr_arg
I have a type alias somewhere:
and I have a function that takes a refence to one:
Clippy, run with
-Dwarnings
, returns this suggestion:I think this suggestion is bad -- I want to keep this type alias. I have to pepper each function that receives such an arg with
#[allow(clippy::ptr_arg)]
and a comment explaining why.Meta
Rust version (
rustc -Vv
):clippy version:
The text was updated successfully, but these errors were encountered: