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

Commit 598abb8

Browse files
committed
cargo fmt
1 parent ac068bf commit 598abb8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

token/cli/src/config.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,13 @@ impl<'a> Config<'a> {
527527
}
528528
}
529529

530-
// In clap v2, `value_of` returns `None` if the argument id is not previously specified in
531-
// `Arg`. In contrast, in clap v3, `value_of` panics in this case. Therefore, compared
532-
// to the same function in solana-clap-utils, `signer_from_path` in solana-clap-v3-utils errors
533-
// early when `path` is a valid pubkey, but `SIGNER_ARG.name` is not specified in the args.
534-
// This function behaves exactly as `signer_from_path` from solana-clap-utils by catching
535-
// this special case.
530+
// In clap v2, `value_of` returns `None` if the argument id is not previously
531+
// specified in `Arg`. In contrast, in clap v3, `value_of` panics in this case.
532+
// Therefore, compared to the same function in solana-clap-utils,
533+
// `signer_from_path` in solana-clap-v3-utils errors early when `path` is a
534+
// valid pubkey, but `SIGNER_ARG.name` is not specified in the args.
535+
// This function behaves exactly as `signer_from_path` from solana-clap-utils by
536+
// catching this special case.
536537
fn signer_from_path(
537538
matches: &ArgMatches,
538539
path: &str,

0 commit comments

Comments
 (0)