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 9fb428b commit ca699d2Copy full SHA for ca699d2
src/bin/cargo/commands/fix.rs
@@ -1,5 +1,6 @@
1
use crate::command_prelude::*;
2
3
+use cargo::core::Workspace;
4
use cargo::ops;
5
6
pub fn cli() -> Command {
@@ -69,7 +70,8 @@ pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {
69
70
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 root_manifest = args.root_manifest(gctx)?;
74
+ let ws = Workspace::new(&root_manifest, gctx)?;
75
let mut opts = args.compile_options(gctx, mode, Some(&ws), ProfileChecking::LegacyTestOnly)?;
76
77
if !opts.filter.is_specific() {
0 commit comments