rust-lang/rust-clippy

Lint on method/struct fields sharing the same name

Open

#1481 aperta il 27 gen 2017

Vedi su GitHub
 (7 commenti) (0 reazioni) (1 assegnatario)Rust (1391 fork)batch import
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);
}

Guida contributor