Fix args::parse: Do not free disabled_strategies

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-08-03 10:17:27 +10:00 committed by GitHub
parent 1801932e50
commit aacc9e3dca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -588,9 +588,6 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
.error(ErrorKind::TooFewValues, "You have disabled all strategies")
.exit()
}
// Free disable_strategies as it will not be used again.
opts.disable_strategies = Vec::new();
}
// Ensure that Strategy::Compile is specified as the last strategy