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

Commit 6dd2a6c

Browse files
committed
use usize type parameters for min_values and max_values
1 parent 5d1c9ec commit 6dd2a6c

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

@@ -1218,8 +1218,8 @@ pub fn app<'a, 'b>(
12181218
.takes_value(true)
12191219
.index(2)
12201220
.required(true)
1221-
.min_values(MIN_SIGNERS as u64)
1222-
.max_values(MAX_SIGNERS as u64)
1221+
.min_values(MIN_SIGNERS)
1222+
.max_values(MAX_SIGNERS)
12231223
.help(multisig_member_help),
12241224
)
12251225
.arg(
@@ -1408,7 +1408,7 @@ pub fn app<'a, 'b>(
14081408
.value_name("PUBKEY:ROLE")
14091409
.takes_value(true)
14101410
.multiple(true)
1411-
.min_values(0u64)
1411+
.min_values(0_usize)
14121412
.help("Additional pubkey(s) required for a transfer hook and their \
14131413
role, in the format \"<PUBKEY>:<ROLE>\". The role must be \
14141414
\"readonly\", \"writable\". \"readonly-signer\", or \"writable-signer\".\
@@ -2247,7 +2247,7 @@ pub fn app<'a, 'b>(
22472247
.value_name("ACCOUNT_ADDRESS")
22482248
.takes_value(true)
22492249
.multiple(true)
2250-
.min_values(0u64)
2250+
.min_values(0_usize)
22512251
.help("The token accounts to withdraw from")
22522252
)
22532253
.arg(

0 commit comments

Comments
 (0)