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

Commit 81dfff1

Browse files
committed
update syntax for custom validator functions
1 parent 6fccefe commit 81dfff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

token/cli/src/clap_app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub fn mint_address_arg<'a, 'b>() -> Arg<'a> {
269269
.help(MINT_ADDRESS_ARG.help)
270270
}
271271

272-
fn is_mint_decimals(string: String) -> Result<(), String> {
272+
fn is_mint_decimals(string: &str) -> Result<(), String> {
273273
is_parsable::<u8>(string)
274274
}
275275

@@ -323,7 +323,7 @@ pub fn multisig_signer_arg<'a, 'b>() -> Arg<'a> {
323323
.help(MULTISIG_SIGNER_ARG.help)
324324
}
325325

326-
fn is_multisig_minimum_signers(string: String) -> Result<(), String> {
326+
fn is_multisig_minimum_signers(string: &str) -> Result<(), String> {
327327
let v = u8::from_str(&string).map_err(|e| e.to_string())? as usize;
328328
if v < MIN_SIGNERS {
329329
Err(format!("must be at least {}", MIN_SIGNERS))

0 commit comments

Comments
 (0)