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

Commit 12a68e3

Browse files
committed
remove lifetime parameters from ArgMatches
1 parent 7e2df7b commit 12a68e3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

token/cli/src/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use {
2222
};
2323

2424
pub(crate) async fn bench_process_command(
25-
matches: &ArgMatches<'_>,
25+
matches: &ArgMatches,
2626
config: &Config<'_>,
2727
mut signers: Vec<Arc<dyn Signer>>,
2828
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,

token/cli/src/command.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn new_throwaway_signer() -> (Arc<dyn Signer>, Pubkey) {
9797
}
9898

9999
fn get_signer(
100-
matches: &ArgMatches<'_>,
100+
matches: &ArgMatches,
101101
keypair_name: &str,
102102
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
103103
) -> Option<(Arc<dyn Signer>, Pubkey)> {
@@ -109,7 +109,7 @@ fn get_signer(
109109
})
110110
}
111111

112-
fn parse_amount_or_all(matches: &ArgMatches<'_>) -> Option<f64> {
112+
fn parse_amount_or_all(matches: &ArgMatches) -> Option<f64> {
113113
match matches.value_of("amount").unwrap() {
114114
"ALL" => None,
115115
amount => Some(amount.parse::<f64>().unwrap()),
@@ -3494,7 +3494,7 @@ struct ConfidentialTransferArgs {
34943494

34953495
pub async fn process_command<'a>(
34963496
sub_command: &CommandName,
3497-
sub_matches: &ArgMatches<'_>,
3497+
sub_matches: &ArgMatches,
34983498
config: &Config<'a>,
34993499
mut wallet_manager: Option<Rc<RemoteWalletManager>>,
35003500
mut bulk_signers: Vec<Arc<dyn Signer>>,

token/cli/src/config.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use {
3131

3232
type SignersOf = Vec<(Arc<dyn Signer>, Pubkey)>;
3333
fn signers_of(
34-
matches: &ArgMatches<'_>,
34+
matches: &ArgMatches,
3535
name: &str,
3636
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
3737
) -> Result<Option<SignersOf>, Box<dyn std::error::Error>> {
@@ -76,7 +76,7 @@ pub struct Config<'a> {
7676

7777
impl<'a> Config<'a> {
7878
pub async fn new(
79-
matches: &ArgMatches<'_>,
79+
matches: &ArgMatches,
8080
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
8181
bulk_signers: &mut Vec<Arc<dyn Signer>>,
8282
multisigner_ids: &'a mut Vec<Pubkey>,
@@ -127,7 +127,7 @@ impl<'a> Config<'a> {
127127
}
128128

129129
fn extract_multisig_signers(
130-
matches: &ArgMatches<'_>,
130+
matches: &ArgMatches,
131131
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
132132
bulk_signers: &mut Vec<Arc<dyn Signer>>,
133133
multisigner_ids: &'a mut Vec<Pubkey>,
@@ -147,7 +147,7 @@ impl<'a> Config<'a> {
147147
}
148148

149149
pub async fn new_with_clients_and_ws_url(
150-
matches: &ArgMatches<'_>,
150+
matches: &ArgMatches,
151151
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
152152
bulk_signers: &mut Vec<Arc<dyn Signer>>,
153153
multisigner_ids: &'a mut Vec<Pubkey>,
@@ -358,7 +358,7 @@ impl<'a> Config<'a> {
358358
// return the associated token address for the default address.
359359
pub(crate) async fn associated_token_address_or_override(
360360
&self,
361-
arg_matches: &ArgMatches<'_>,
361+
arg_matches: &ArgMatches,
362362
override_name: &str,
363363
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
364364
) -> Result<Pubkey, Error> {
@@ -377,7 +377,7 @@ impl<'a> Config<'a> {
377377
// return the associated token address for the default address.
378378
pub(crate) async fn associated_token_address_for_token_or_override(
379379
&self,
380-
arg_matches: &ArgMatches<'_>,
380+
arg_matches: &ArgMatches,
381381
override_name: &str,
382382
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
383383
token: Option<Pubkey>,
@@ -409,7 +409,7 @@ impl<'a> Config<'a> {
409409
// address if there is one
410410
pub(crate) fn pubkey_or_default(
411411
&self,
412-
arg_matches: &ArgMatches<'_>,
412+
arg_matches: &ArgMatches,
413413
address_name: &str,
414414
wallet_manager: &mut Option<Rc<RemoteWalletManager>>,
415415
) -> Result<Pubkey, Error> {

0 commit comments

Comments
 (0)