rust-lang/rust-clippy
Voir sur GitHubLint calling methods that are redundant to deref
Open
#2 094 ouverte le 28 sept. 2017
A-lintL-unnecessaryT-middlegood first issue
Métriques du dépôt
- Stars
- (10 406 stars)
- Métriques de merge PR
- (Merge moyen 19j 22h) (113 PRs mergées en 30 j)
Description
For example, vec.as_slice().first() could be just worded as vec.first().
We'd probably want to have a whitelist for this, but in general, calling such methods is redundant.