Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit e6f43c6

Browse files
committed
use usize type parameters for min_values and max_values
1 parent ad1fa87 commit e6f43c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

token/cli/src/clap_app.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ pub fn multisig_signer_arg<'a, 'b>() -> Arg<'a> {
306306
.value_name("MULTISIG_SIGNER")
307307
.takes_value(true)
308308
.multiple(true)
309-
.min_values(0u64)
310-
.max_values(MAX_SIGNERS as u64)
309+
.min_values(0_usize)
310+
.max_values(MAX_SIGNERS)
311311
.help(MULTISIG_SIGNER_ARG.help)
312312
}
313313

@@ -1147,8 +1147,8 @@ pub fn app<'a, 'b>(
11471147
.takes_value(true)
11481148
.index(2)
11491149
.required(true)
1150-
.min_values(MIN_SIGNERS as u64)
1151-
.max_values(MAX_SIGNERS as u64)
1150+
.min_values(MIN_SIGNERS)
1151+
.max_values(MAX_SIGNERS)
11521152
.help(multisig_member_help),
11531153
)
11541154
.arg(
@@ -1337,7 +1337,7 @@ pub fn app<'a, 'b>(
13371337
.value_name("PUBKEY:ROLE")
13381338
.takes_value(true)
13391339
.multiple(true)
1340-
.min_values(0u64)
1340+
.min_values(0_usize)
13411341
.help("Additional pubkey(s) required for a transfer hook and their \
13421342
role, in the format \"<PUBKEY>:<ROLE>\". The role must be \
13431343
\"readonly\", \"writable\". \"readonly-signer\", or \"writable-signer\".\
@@ -2176,7 +2176,7 @@ pub fn app<'a, 'b>(
21762176
.value_name("ACCOUNT_ADDRESS")
21772177
.takes_value(true)
21782178
.multiple(true)
2179-
.min_values(0u64)
2179+
.min_values(0_usize)
21802180
.help("The token accounts to withdraw from")
21812181
)
21822182
.arg(

0 commit comments

Comments
 (0)