If there's a reason to use mut (like compability with older
compilers), then we should stick #[allow(unused_mut)] on the
declaration.
Details
Details
- Reviewers
Alphare pulkit - Group Reviewers
hg-reviewers - Commits
- rHG73d6ce2746d2: rust: fix warning about unnecessary mut
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Comment Actions
This is not detected in rustc 1.34.2, it's the only reason I left it, it works without the mut indeed.