rust-lang/rust-clippy
GitHub で見るLint on method/struct fields sharing the same name
Open
#1,481 opened on 2017年1月27日
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);
}