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

Commit 70e025a

Browse files
committed
use usize type parameters for min_values and max_values
1 parent 02eb067 commit 70e025a

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
@@ -318,8 +318,8 @@ pub fn multisig_signer_arg<'a, 'b>() -> Arg<'a> {
318318
.value_name("MULTISIG_SIGNER")
319319
.takes_value(true)
320320
.multiple(true)
321-
.min_values(0u64)
322-
.max_values(MAX_SIGNERS as u64)
321+
.min_values(0_usize)
322+
.max_values(MAX_SIGNERS)
323323
.help(MULTISIG_SIGNER_ARG.help)
324324
}
325325

@@ -1178,8 +1178,8 @@ pub fn app<'a, 'b>(
11781178
.takes_value(true)
11791179
.index(2)
11801180
.required(true)
1181-
.min_values(MIN_SIGNERS as u64)
1182-
.max_values(MAX_SIGNERS as u64)
1181+
.min_values(MIN_SIGNERS)
1182+
.max_values(MAX_SIGNERS)
11831183
.help(multisig_member_help),
11841184
)
11851185
.arg(
@@ -1368,7 +1368,7 @@ pub fn app<'a, 'b>(
13681368
.value_name("PUBKEY:ROLE")
13691369
.takes_value(true)
13701370
.multiple(true)
1371-
.min_values(0u64)
1371+
.min_values(0_usize)
13721372
.help("Additional pubkey(s) required for a transfer hook and their \
13731373
role, in the format \"<PUBKEY>:<ROLE>\". The role must be \
13741374
\"readonly\", \"writable\". \"readonly-signer\", or \"writable-signer\".\
@@ -2207,7 +2207,7 @@ pub fn app<'a, 'b>(
22072207
.value_name("ACCOUNT_ADDRESS")
22082208
.takes_value(true)
22092209
.multiple(true)
2210-
.min_values(0u64)
2210+
.min_values(0_usize)
22112211
.help("The token accounts to withdraw from")
22122212
)
22132213
.arg(

0 commit comments

Comments
 (0)