rust-lang/rust-clippy

lint variable assignments that could be part of a method/field chain

Open

#2035 opened on Sep 9, 2017

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Rust (10,406 stars) (1,391 forks)batch import
A-lintL-unnecessaryT-middlegood first issue

Description

let x = foo.bar;
let y = x.met();

Should be

let y = foo.bar.met();

If x is not used anywhere else

Contributor guide