28
28
29
29
type SignersOf = Vec < ( Arc < dyn Signer > , Pubkey ) > ;
30
30
fn signers_of (
31
- matches : & ArgMatches < ' _ > ,
31
+ matches : & ArgMatches ,
32
32
name : & str ,
33
33
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
34
34
) -> Result < Option < SignersOf > , Box < dyn std:: error:: Error > > {
@@ -73,7 +73,7 @@ pub struct Config<'a> {
73
73
74
74
impl < ' a > Config < ' a > {
75
75
pub async fn new (
76
- matches : & ArgMatches < ' _ > ,
76
+ matches : & ArgMatches ,
77
77
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
78
78
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
79
79
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -124,7 +124,7 @@ impl<'a> Config<'a> {
124
124
}
125
125
126
126
fn extract_multisig_signers (
127
- matches : & ArgMatches < ' _ > ,
127
+ matches : & ArgMatches ,
128
128
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
129
129
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
130
130
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -144,7 +144,7 @@ impl<'a> Config<'a> {
144
144
}
145
145
146
146
pub async fn new_with_clients_and_ws_url (
147
- matches : & ArgMatches < ' _ > ,
147
+ matches : & ArgMatches ,
148
148
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
149
149
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
150
150
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -331,7 +331,7 @@ impl<'a> Config<'a> {
331
331
// return the associated token address for the default address.
332
332
pub ( crate ) async fn associated_token_address_or_override (
333
333
& self ,
334
- arg_matches : & ArgMatches < ' _ > ,
334
+ arg_matches : & ArgMatches ,
335
335
override_name : & str ,
336
336
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
337
337
) -> Result < Pubkey , Error > {
@@ -350,7 +350,7 @@ impl<'a> Config<'a> {
350
350
// return the associated token address for the default address.
351
351
pub ( crate ) async fn associated_token_address_for_token_or_override (
352
352
& self ,
353
- arg_matches : & ArgMatches < ' _ > ,
353
+ arg_matches : & ArgMatches ,
354
354
override_name : & str ,
355
355
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
356
356
token : Option < Pubkey > ,
@@ -382,7 +382,7 @@ impl<'a> Config<'a> {
382
382
// address if there is one
383
383
pub ( crate ) fn pubkey_or_default (
384
384
& self ,
385
- arg_matches : & ArgMatches < ' _ > ,
385
+ arg_matches : & ArgMatches ,
386
386
address_name : & str ,
387
387
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
388
388
) -> Result < Pubkey , Error > {
0 commit comments