Closed sunarch closed 5 months ago
Both are fine on 0.11.0 but 0.12.0-dev raises an error on build.
Tested with the current nightly, 0.12.0-dev.1856+94c63f31f
The output is error: local variable is never mutated and note: consider using 'const' on the changed lines.
error: local variable is never mutated
note: consider using 'const'
Since this does not interfere with the operation of the current version but spares a step in adjusting to the next one, I thought this was worth a PR.
Both are fine on 0.11.0 but 0.12.0-dev raises an error on build.
Tested with the current nightly, 0.12.0-dev.1856+94c63f31f
The output is
error: local variable is never mutated
andnote: consider using 'const'
on the changed lines.Since this does not interfere with the operation of the current version but spares a step in adjusting to the next one, I thought this was worth a PR.