rust-lang/rust-clippy

Lint on method/struct fields sharing the same name

Open

#1,481 建立於 2017年1月27日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)Rust (10,406 star) (1,391 fork)batch import
A-lintL-styleT-middlegood first issue

描述

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);
}

貢獻者指南