rust-lang/rust-clippy
Ver no GitHubLint calling methods that are redundant to deref
Open
#2.094 aberto em 28 de set. de 2017
A-lintL-unnecessaryT-middlegood first issue
Métricas do repositório
- Stars
- (10.406 stars)
- Métricas de merge de PR
- (Mesclagem média 19d 22h) (113 fundiu PRs em 30d)
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.