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 > ,
@@ -358,7 +358,7 @@ impl<'a> Config<'a> {
358
358
// return the associated token address for the default address.
359
359
pub ( crate ) async fn associated_token_address_or_override (
360
360
& self ,
361
- arg_matches : & ArgMatches < ' _ > ,
361
+ arg_matches : & ArgMatches ,
362
362
override_name : & str ,
363
363
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
364
364
) -> Result < Pubkey , Error > {
@@ -377,7 +377,7 @@ impl<'a> Config<'a> {
377
377
// return the associated token address for the default address.
378
378
pub ( crate ) async fn associated_token_address_for_token_or_override (
379
379
& self ,
380
- arg_matches : & ArgMatches < ' _ > ,
380
+ arg_matches : & ArgMatches ,
381
381
override_name : & str ,
382
382
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
383
383
token : Option < Pubkey > ,
@@ -409,7 +409,7 @@ impl<'a> Config<'a> {
409
409
// address if there is one
410
410
pub ( crate ) fn pubkey_or_default (
411
411
& self ,
412
- arg_matches : & ArgMatches < ' _ > ,
412
+ arg_matches : & ArgMatches ,
413
413
address_name : & str ,
414
414
wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
415
415
) -> Result < Pubkey , Error > {
0 commit comments