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

Commit 524fc25

Browse files
committed
use usize type parameters for min_values and max_values
1 parent 71cbb29 commit 524fc25

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

@@ -1175,8 +1175,8 @@ pub fn app<'a, 'b>(
11751175
.takes_value(true)
11761176
.index(2)
11771177
.required(true)
1178-
.min_values(MIN_SIGNERS as u64)
1179-
.max_values(MAX_SIGNERS as u64)
1178+
.min_values(MIN_SIGNERS)
1179+
.max_values(MAX_SIGNERS)
11801180
.help(multisig_member_help),
11811181
)
11821182
.arg(
@@ -1365,7 +1365,7 @@ pub fn app<'a, 'b>(
13651365
.value_name("PUBKEY:ROLE")
13661366
.takes_value(true)
13671367
.multiple(true)
1368-
.min_values(0u64)
1368+
.min_values(0_usize)
13691369
.help("Additional pubkey(s) required for a transfer hook and their \
13701370
role, in the format \"<PUBKEY>:<ROLE>\". The role must be \
13711371
\"readonly\", \"writable\". \"readonly-signer\", or \"writable-signer\".\
@@ -2204,7 +2204,7 @@ pub fn app<'a, 'b>(
22042204
.value_name("ACCOUNT_ADDRESS")
22052205
.takes_value(true)
22062206
.multiple(true)
2207-
.min_values(0u64)
2207+
.min_values(0_usize)
22082208
.help("The token accounts to withdraw from")
22092209
)
22102210
.arg(

0 commit comments

Comments
 (0)