rust-lang/rust-clippy
Vedi su GitHubLint on method/struct fields sharing the same name
Open
#1481 aperta il 27 gen 2017
A-lintL-styleT-middlegood first issue
Metriche repository
- Star
- (10.406 star)
- Metriche merge PR
- (Merge medio 19g 22h) (113 PR mergiate in 30 g)
Descrizione
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);
}