rust-lang/rust-clippy
Voir sur GitHubLint on method/struct fields sharing the same name
Open
#1 481 ouverte le 27 janv. 2017
A-lintL-styleT-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
Would it be possible to lint on the situation in which a struct field shares a name with a struct method? For example, in the following situation:
struct Foo {
bar: i32
}
impl Foo {
fn bar(self);
}