rust-lang/rust-clippy

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

Open

#2,035 创建于 2017年9月9日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Rust (10,406 star) (1,391 fork)batch import
A-lintL-unnecessaryT-middlegood first issue

描述

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

Should be

let y = foo.bar.met();

If x is not used anywhere else

贡献者指南