Static rustc_lint_defs::builtin::UNUSED_MUT [−][src]
pub static UNUSED_MUT: &LintExpand description
The unused_mut lint detects mut variables which don’t need to be
mutable.
Example
let mut x = 5;{{produces}}
Explanation
The preferred style is to only mark variables as mut if it is
required.