rust-lang/rust-clippy
Ver no GitHubLint on method/struct fields sharing the same name
Open
#1.481 aberto em 27 de jan. de 2017
A-lintL-styleT-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
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);
}