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

Commit 97b288c

Browse files
committed
update syntax for custom validator functions
1 parent 7f40b38 commit 97b288c

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
@@ -257,7 +257,7 @@ pub fn mint_address_arg<'a, 'b>() -> Arg<'a> {
257257
.help(MINT_ADDRESS_ARG.help)
258258
}
259259

260-
fn is_mint_decimals(string: String) -> Result<(), String> {
260+
fn is_mint_decimals(string: &str) -> Result<(), String> {
261261
is_parsable::<u8>(string)
262262
}
263263

@@ -311,7 +311,7 @@ pub fn multisig_signer_arg<'a, 'b>() -> Arg<'a> {
311311
.help(MULTISIG_SIGNER_ARG.help)
312312
}
313313

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

0 commit comments

Comments
 (0)