rust-lang/rust-clippy

Lint calling methods that are redundant to deref

Open

#2 094 ouverte le 28 sept. 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)Rust (1 391 forks)batch import
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.

Guide contributeur