Skip to content

Commit 8b0f05e

Browse files
authored
refactor: rename arg mode to intent (#15774)
This was me overlooked when doing #15601
2 parents dfcf4c2 + e5a43c0 commit 8b0f05e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ Run `{cmd}` to see possible targets."
732732
fn compile_options(
733733
&self,
734734
gctx: &GlobalContext,
735-
mode: UserIntent,
735+
intent: UserIntent,
736736
workspace: Option<&Workspace<'_>>,
737737
profile_checking: ProfileChecking,
738738
) -> CargoResult<CompileOptions> {
@@ -805,7 +805,7 @@ Run `{cmd}` to see possible targets."
805805
self.jobs()?,
806806
self.keep_going(),
807807
&self.targets()?,
808-
mode,
808+
intent,
809809
)?;
810810
build_config.message_format = message_format.unwrap_or(MessageFormat::Human);
811811
build_config.requested_profile = self.get_profile_name("dev", profile_checking)?;
@@ -901,11 +901,11 @@ Run `{cmd}` to see possible targets."
901901
fn compile_options_for_single_package(
902902
&self,
903903
gctx: &GlobalContext,
904-
mode: UserIntent,
904+
intent: UserIntent,
905905
workspace: Option<&Workspace<'_>>,
906906
profile_checking: ProfileChecking,
907907
) -> CargoResult<CompileOptions> {
908-
let mut compile_opts = self.compile_options(gctx, mode, workspace, profile_checking)?;
908+
let mut compile_opts = self.compile_options(gctx, intent, workspace, profile_checking)?;
909909
let spec = self._values_of("package");
910910
if spec.iter().any(restricted_names::is_glob_pattern) {
911911
anyhow::bail!("Glob patterns on package selection are not supported.")

0 commit comments

Comments
 (0)