From aacc9e3dca1783ebc78b4c9d307f63411e9ee748 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sat, 3 Aug 2024 10:17:27 +1000 Subject: [PATCH] Fix `args::parse`: Do not free disabled_strategies Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/bin/src/args.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index 195f25f1..78d003f8 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -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