Skip to content

Commit 4cda688

Browse files
ref(proguard): Redeclare mappings as immutable
To make it easier to reason about the code when working on #2328, we redeclare the `mappings` variable as immutable after we are done constructing it.
1 parent 07fb49f commit 4cda688

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/commands/upload_proguard.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
214214
}
215215
}
216216

217+
// We are done constructing the mappings, redeclare as immutable.
218+
let mappings = mappings;
219+
217220
let api = Api::current();
218221
let config = Config::current();
219222

0 commit comments

Comments
 (0)