rustc_lint_defs::builtinStatic UNUSED_MUT
source pub static UNUSED_MUT: &Lint
Expand description
The unused_mut
lint detects mut variables which don’t need to be
mutable.
§Example
{{produces}}
§Explanation
The preferred style is to only mark variables as mut
if it is
required.