rust-lang/rust-clippy

Lint for unused arguments starting with a _

Open

#3219 aperta il 25 set 2018

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)Rust (1391 fork)batch import
A-lintL-stylegood first issue

Metriche repository

Star
 (10.406 star)
Metriche merge PR
 (Merge medio 19g 22h) (113 PR mergiate in 30 g)

Descrizione

In response to this comment

I think the idea here would be to recommend removal of arguments that are ignored and never referenced.

On the flip side, I'm wondering if it would make sense to also lint for used arguments starting _ which recommends removing the _, because that came up in the same review.

Guida contributor