Skip to content

Commit 05c1653

Browse files
committed
resolve conflict
1 parent bf304aa commit 05c1653

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cargo-test-macro = { path = "crates/cargo-test-macro" }
3131
cargo-test-support = { path = "crates/cargo-test-support" }
3232
cargo-util = { version = "0.2.6", path = "crates/cargo-util" }
3333
cargo_metadata = "0.18.1"
34-
clap = "4.4.11"
34+
clap = "4.4.10"
3535
color-print = "0.3.5"
3636
core-foundation = { version = "0.9.3", features = ["mac_os_10_7_support"] }
3737
crates-io = { version = "0.39.0", path = "crates/crates-io" }

src/bin/cargo/commands/owner.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn cli() -> Command {
3838
.value_delimiter(',')
3939
.value_name("OWNER_NAME")
4040
.hide(true)
41-
.help("Name of the owner you want to invite")
41+
.help("Name of the owner you want to invite"),
4242
)
4343
.args(add_registry_args())
4444
.override_usage(color_print::cstr!(
@@ -52,7 +52,7 @@ pub fn cli() -> Command {
5252
.value_delimiter(',')
5353
.value_name("OWNER_NAME")
5454
.hide(true)
55-
.help("Name of the owner you want to remove")
55+
.help("Name of the owner you want to remove"),
5656
)
5757
.args(add_registry_args())
5858
.override_usage(color_print::cstr!(
@@ -76,8 +76,7 @@ pub fn cli() -> Command {
7676

7777
fn add_registry_args() -> [Arg; 4] {
7878
[
79-
opt("crate", "Crate name that you want to manage the owner")
80-
.value_name("CRATE_NAME"),
79+
opt("crate", "Crate name that you want to manage the owner").value_name("CRATE_NAME"),
8180
opt("index", "Registry index URL to modify owners for")
8281
.value_name("INDEX")
8382
.conflicts_with("registry"),
@@ -112,8 +111,6 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
112111
),
113112
};
114113

115-
let common_args = args.subcommand().map(|(_, args)| args).unwrap_or(args);
116-
117114
if (to_add.clone(), to_remove.clone(), list) == (None, None, false) {
118115
return Err(CliError::new(
119116
anyhow::format_err!(
@@ -124,6 +121,8 @@ enter `cargo owner --help` for help."
124121
));
125122
}
126123

124+
let common_args = args.subcommand().map(|(_, args)| args).unwrap_or(args);
125+
127126
let opts = OwnersOptions {
128127
krate: common_args.clone().get_one::<String>("crate").cloned(),
129128
token: common_args

0 commit comments

Comments
 (0)