mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] build.rs unnecessarily uses mut where the variable is actually immutable
#732
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abhi-kr-2100 on GitHub (Jan 5, 2023).
CCExtractor version: 0.94
Using
mutwhere the variable is actually never mutated is considered bad practice. Running the./buildscripts for example, output the following warnings:@abhi-kr-2100 commented on GitHub (Jan 5, 2023):
PR #1470 should fix this.
@abhi-kr-2100 commented on GitHub (Jan 5, 2023):
Update: The two variables actually need to be borrowed as mutables.