rust-lang/rust-clippy

Lint `let mut x = x;` where `x` is a function argument

Open

#1657 opened on Apr 3, 2017

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

Description

The argument should be made mutable instead of rebinding it to mutable.

Contributor guide