We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f4d3df commit 9fb428bCopy full SHA for 9fb428b
src/bin/cargo/commands/fix.rs
@@ -60,7 +60,6 @@ pub fn cli() -> Command {
60
}
61
62
pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {
63
- let ws = args.workspace(gctx)?;
64
// This is a legacy behavior that causes `cargo fix` to pass `--test`.
65
let test = matches!(
66
args.get_one::<String>("profile").map(String::as_str),
@@ -70,6 +69,7 @@ pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {
70
69
71
// Unlike other commands default `cargo fix` to all targets to fix as much
72
// code as we can.
+ let ws = args.workspace(gctx)?;
73
let mut opts = args.compile_options(gctx, mode, Some(&ws), ProfileChecking::LegacyTestOnly)?;
74
75
if !opts.filter.is_specific() {
0 commit comments