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 > > {
@@ -71,7 +71,7 @@ pub struct Config<'a> {
71
71
72
72
impl < ' a > Config < ' a > {
73
73
pub async fn new (
74
- matches : & ArgMatches < ' _ > ,
74
+ matches : & ArgMatches ,
75
75
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
76
76
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
77
77
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -122,7 +122,7 @@ impl<'a> Config<'a> {
122
122
}
123
123
124
124
fn extract_multisig_signers (
125
- matches : & ArgMatches < ' _ > ,
125
+ matches : & ArgMatches ,
126
126
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
127
127
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
128
128
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -142,7 +142,7 @@ impl<'a> Config<'a> {
142
142
}
143
143
144
144
pub async fn new_with_clients_and_ws_url (
145
- matches : & ArgMatches < ' _ > ,
145
+ matches : & ArgMatches ,
146
146
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
147
147
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
148
148
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -325,7 +325,7 @@ impl<'a> Config<'a> {
325
325
// return the associated token address for the default address.
326
326
pub ( crate ) async fn associated_token_address_or_override (
327
327
& self ,
328
- arg_matches : & ArgMatches < ' _ > ,
328
+ arg_matches : & ArgMatches ,
329
329
override_name : & str ,
330
330
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
331
331
) -> Result < Pubkey , Error > {
@@ -344,7 +344,7 @@ impl<'a> Config<'a> {
344
344
// return the associated token address for the default address.
345
345
pub ( crate ) async fn associated_token_address_for_token_or_override (
346
346
& self ,
347
- arg_matches : & ArgMatches < ' _ > ,
347
+ arg_matches : & ArgMatches ,
348
348
override_name : & str ,
349
349
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
350
350
token : Option < Pubkey > ,
@@ -376,7 +376,7 @@ impl<'a> Config<'a> {
376
376
// address if there is one
377
377
pub ( crate ) fn pubkey_or_default (
378
378
& self ,
379
- arg_matches : & ArgMatches < ' _ > ,
379
+ arg_matches : & ArgMatches ,
380
380
address_name : & str ,
381
381
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
382
382
) -> Result < Pubkey , Error > {
0 commit comments