31
31
32
32
type SignersOf = Vec < ( Arc < dyn Signer > , Pubkey ) > ;
33
33
fn signers_of (
34
- matches : & ArgMatches < ' _ > ,
34
+ matches : & ArgMatches ,
35
35
name : & str ,
36
36
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
37
37
) -> Result < Option < SignersOf > , Box < dyn std:: error:: Error > > {
@@ -76,7 +76,7 @@ pub struct Config<'a> {
76
76
77
77
impl < ' a > Config < ' a > {
78
78
pub async fn new (
79
- matches : & ArgMatches < ' _ > ,
79
+ matches : & ArgMatches ,
80
80
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
81
81
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
82
82
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -127,7 +127,7 @@ impl<'a> Config<'a> {
127
127
}
128
128
129
129
fn extract_multisig_signers (
130
- matches : & ArgMatches < ' _ > ,
130
+ matches : & ArgMatches ,
131
131
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
132
132
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
133
133
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -147,7 +147,7 @@ impl<'a> Config<'a> {
147
147
}
148
148
149
149
pub async fn new_with_clients_and_ws_url (
150
- matches : & ArgMatches < ' _ > ,
150
+ matches : & ArgMatches ,
151
151
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
152
152
bulk_signers : & mut Vec < Arc < dyn Signer > > ,
153
153
multisigner_ids : & ' a mut Vec < Pubkey > ,
@@ -357,7 +357,7 @@ impl<'a> Config<'a> {
357
357
// return the associated token address for the default address.
358
358
pub ( crate ) async fn associated_token_address_or_override (
359
359
& self ,
360
- arg_matches : & ArgMatches < ' _ > ,
360
+ arg_matches : & ArgMatches ,
361
361
override_name : & str ,
362
362
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
363
363
) -> Result < Pubkey , Error > {
@@ -376,7 +376,7 @@ impl<'a> Config<'a> {
376
376
// return the associated token address for the default address.
377
377
pub ( crate ) async fn associated_token_address_for_token_or_override (
378
378
& self ,
379
- arg_matches : & ArgMatches < ' _ > ,
379
+ arg_matches : & ArgMatches ,
380
380
override_name : & str ,
381
381
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
382
382
token : Option < Pubkey > ,
@@ -408,7 +408,7 @@ impl<'a> Config<'a> {
408
408
// address if there is one
409
409
pub ( crate ) fn pubkey_or_default (
410
410
& self ,
411
- arg_matches : & ArgMatches < ' _ > ,
411
+ arg_matches : & ArgMatches ,
412
412
address_name : & str ,
413
413
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
414
414
) -> Result < Pubkey , Error > {
0 commit comments