diff --git a/programs/associated-token-account/src/instructions/create.rs b/programs/associated-token-account/src/instructions/create.rs index 33e41f9..3c2eeec 100644 --- a/programs/associated-token-account/src/instructions/create.rs +++ b/programs/associated-token-account/src/instructions/create.rs @@ -30,7 +30,7 @@ pub struct Create<'a> { pub token_program: &'a AccountInfo, } -impl<'a> Create<'a> { +impl Create<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/associated-token-account/src/instructions/create_idempotent.rs b/programs/associated-token-account/src/instructions/create_idempotent.rs index 3341919..b88d185 100644 --- a/programs/associated-token-account/src/instructions/create_idempotent.rs +++ b/programs/associated-token-account/src/instructions/create_idempotent.rs @@ -31,7 +31,7 @@ pub struct CreateIdempotent<'a> { pub token_program: &'a AccountInfo, } -impl<'a> CreateIdempotent<'a> { +impl CreateIdempotent<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/associated-token-account/src/instructions/recover_nested.rs b/programs/associated-token-account/src/instructions/recover_nested.rs index fff4e3c..003dfc7 100644 --- a/programs/associated-token-account/src/instructions/recover_nested.rs +++ b/programs/associated-token-account/src/instructions/recover_nested.rs @@ -41,7 +41,7 @@ pub struct RecoverNested<'a> { pub token_program: &'a AccountInfo, } -impl<'a> RecoverNested<'a> { +impl RecoverNested<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/advance_nonce_account.rs b/programs/system/src/instructions/advance_nonce_account.rs index 3e71e3b..b40d2fe 100644 --- a/programs/system/src/instructions/advance_nonce_account.rs +++ b/programs/system/src/instructions/advance_nonce_account.rs @@ -22,7 +22,7 @@ pub struct AdvanceNonceAccount<'a> { pub authority: &'a AccountInfo, } -impl<'a> AdvanceNonceAccount<'a> { +impl AdvanceNonceAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/allocate.rs b/programs/system/src/instructions/allocate.rs index 276dade..0a857cd 100644 --- a/programs/system/src/instructions/allocate.rs +++ b/programs/system/src/instructions/allocate.rs @@ -17,7 +17,7 @@ pub struct Allocate<'a> { pub space: u64, } -impl<'a> Allocate<'a> { +impl Allocate<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/allocate_with_seed.rs b/programs/system/src/instructions/allocate_with_seed.rs index 8bbe3d4..716f648 100644 --- a/programs/system/src/instructions/allocate_with_seed.rs +++ b/programs/system/src/instructions/allocate_with_seed.rs @@ -33,7 +33,7 @@ pub struct AllocateWithSeed<'a, 'b, 'c> { pub owner: &'c Pubkey, } -impl<'a, 'b, 'c> AllocateWithSeed<'a, 'b, 'c> { +impl AllocateWithSeed<'_, '_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/assign.rs b/programs/system/src/instructions/assign.rs index 8cb56e1..f6a1ee5 100644 --- a/programs/system/src/instructions/assign.rs +++ b/programs/system/src/instructions/assign.rs @@ -18,7 +18,7 @@ pub struct Assign<'a, 'b> { pub owner: &'b Pubkey, } -impl<'a, 'b> Assign<'a, 'b> { +impl Assign<'_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/assign_with_seed.rs b/programs/system/src/instructions/assign_with_seed.rs index 6e7957f..de4d416 100644 --- a/programs/system/src/instructions/assign_with_seed.rs +++ b/programs/system/src/instructions/assign_with_seed.rs @@ -29,7 +29,7 @@ pub struct AssignWithSeed<'a, 'b, 'c> { pub owner: &'c Pubkey, } -impl<'a, 'b, 'c> AssignWithSeed<'a, 'b, 'c> { +impl AssignWithSeed<'_, '_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/authorize_nonce_account.rs b/programs/system/src/instructions/authorize_nonce_account.rs index 4431847..597e0c0 100644 --- a/programs/system/src/instructions/authorize_nonce_account.rs +++ b/programs/system/src/instructions/authorize_nonce_account.rs @@ -24,7 +24,7 @@ pub struct AuthorizeNonceAccount<'a, 'b> { pub new_authority: &'b Pubkey, } -impl<'a, 'b> AuthorizeNonceAccount<'a, 'b> { +impl AuthorizeNonceAccount<'_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/create_account.rs b/programs/system/src/instructions/create_account.rs index f051fe1..c76cab1 100644 --- a/programs/system/src/instructions/create_account.rs +++ b/programs/system/src/instructions/create_account.rs @@ -28,7 +28,7 @@ pub struct CreateAccount<'a> { pub owner: &'a Pubkey, } -impl<'a> CreateAccount<'a> { +impl CreateAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/create_account_with_seed.rs b/programs/system/src/instructions/create_account_with_seed.rs index 58e42f7..6b38bac 100644 --- a/programs/system/src/instructions/create_account_with_seed.rs +++ b/programs/system/src/instructions/create_account_with_seed.rs @@ -12,7 +12,7 @@ use pinocchio::{ /// 0. `[WRITE, SIGNER]` Funding account /// 1. `[WRITE]` Created account /// 2. `[SIGNER]` (optional) Base account; the account matching the base Pubkey below must be -/// provided as a signer, but may be the same as the funding account +/// provided as a signer, but may be the same as the funding account pub struct CreateAccountWithSeed<'a, 'b, 'c> { /// Funding account. pub from: &'a AccountInfo, @@ -40,7 +40,7 @@ pub struct CreateAccountWithSeed<'a, 'b, 'c> { pub owner: &'c Pubkey, } -impl<'a, 'b, 'c> CreateAccountWithSeed<'a, 'b, 'c> { +impl CreateAccountWithSeed<'_, '_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/initialize_nonce_account.rs b/programs/system/src/instructions/initialize_nonce_account.rs index 20f968d..29a3a5f 100644 --- a/programs/system/src/instructions/initialize_nonce_account.rs +++ b/programs/system/src/instructions/initialize_nonce_account.rs @@ -35,7 +35,7 @@ pub struct InitializeNonceAccount<'a, 'b> { pub authority: &'b Pubkey, } -impl<'a, 'b> InitializeNonceAccount<'a, 'b> { +impl InitializeNonceAccount<'_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/transfer.rs b/programs/system/src/instructions/transfer.rs index a026d6e..d62a774 100644 --- a/programs/system/src/instructions/transfer.rs +++ b/programs/system/src/instructions/transfer.rs @@ -21,7 +21,7 @@ pub struct Transfer<'a> { pub lamports: u64, } -impl<'a> Transfer<'a> { +impl Transfer<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/transfer_with_seed.rs b/programs/system/src/instructions/transfer_with_seed.rs index 1f7d2ef..71f016f 100644 --- a/programs/system/src/instructions/transfer_with_seed.rs +++ b/programs/system/src/instructions/transfer_with_seed.rs @@ -36,7 +36,7 @@ pub struct TransferWithSeed<'a, 'b, 'c> { pub owner: &'c Pubkey, } -impl<'a, 'b, 'c> TransferWithSeed<'a, 'b, 'c> { +impl TransferWithSeed<'_, '_, '_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/update_nonce_account.rs b/programs/system/src/instructions/update_nonce_account.rs index 2948f2d..b890c8c 100644 --- a/programs/system/src/instructions/update_nonce_account.rs +++ b/programs/system/src/instructions/update_nonce_account.rs @@ -15,7 +15,7 @@ pub struct UpdateNonceAccount<'a> { pub account: &'a AccountInfo, } -impl<'a> UpdateNonceAccount<'a> { +impl UpdateNonceAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/system/src/instructions/withdraw_nonce_account.rs b/programs/system/src/instructions/withdraw_nonce_account.rs index 4275dd5..e45185e 100644 --- a/programs/system/src/instructions/withdraw_nonce_account.rs +++ b/programs/system/src/instructions/withdraw_nonce_account.rs @@ -39,7 +39,7 @@ pub struct WithdrawNonceAccount<'a> { pub lamports: u64, } -impl<'a> WithdrawNonceAccount<'a> { +impl WithdrawNonceAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/approve.rs b/programs/token/src/instructions/approve.rs index 68d45f1..80355a7 100644 --- a/programs/token/src/instructions/approve.rs +++ b/programs/token/src/instructions/approve.rs @@ -26,7 +26,7 @@ pub struct Approve<'a> { pub amount: u64, } -impl<'a> Approve<'a> { +impl Approve<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/approve_checked.rs b/programs/token/src/instructions/approve_checked.rs index 24f4023..9c92493 100644 --- a/programs/token/src/instructions/approve_checked.rs +++ b/programs/token/src/instructions/approve_checked.rs @@ -31,7 +31,7 @@ pub struct ApproveChecked<'a> { pub decimals: u8, } -impl<'a> ApproveChecked<'a> { +impl ApproveChecked<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/burn.rs b/programs/token/src/instructions/burn.rs index 55c045a..d379faf 100644 --- a/programs/token/src/instructions/burn.rs +++ b/programs/token/src/instructions/burn.rs @@ -26,7 +26,7 @@ pub struct Burn<'a> { pub amount: u64, } -impl<'a> Burn<'a> { +impl Burn<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/burn_checked.rs b/programs/token/src/instructions/burn_checked.rs index 77196b8..cd31664 100644 --- a/programs/token/src/instructions/burn_checked.rs +++ b/programs/token/src/instructions/burn_checked.rs @@ -27,7 +27,7 @@ pub struct BurnChecked<'a> { pub decimals: u8, } -impl<'a> BurnChecked<'a> { +impl BurnChecked<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/close_account.rs b/programs/token/src/instructions/close_account.rs index 19461d9..0d6d694 100644 --- a/programs/token/src/instructions/close_account.rs +++ b/programs/token/src/instructions/close_account.rs @@ -20,7 +20,7 @@ pub struct CloseAccount<'a> { pub authority: &'a AccountInfo, } -impl<'a> CloseAccount<'a> { +impl CloseAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/freeze_account.rs b/programs/token/src/instructions/freeze_account.rs index 2ed02a0..3cf2fb5 100644 --- a/programs/token/src/instructions/freeze_account.rs +++ b/programs/token/src/instructions/freeze_account.rs @@ -20,7 +20,7 @@ pub struct FreezeAccount<'a> { pub freeze_authority: &'a AccountInfo, } -impl<'a> FreezeAccount<'a> { +impl FreezeAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/initialize_account.rs b/programs/token/src/instructions/initialize_account.rs index 53a3c7e..cd60814 100644 --- a/programs/token/src/instructions/initialize_account.rs +++ b/programs/token/src/instructions/initialize_account.rs @@ -23,7 +23,7 @@ pub struct InitializeAccount<'a> { pub rent_sysvar: &'a AccountInfo, } -impl<'a> InitializeAccount<'a> { +impl InitializeAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/initialize_account_2.rs b/programs/token/src/instructions/initialize_account_2.rs index d1937e7..8dfa41b 100644 --- a/programs/token/src/instructions/initialize_account_2.rs +++ b/programs/token/src/instructions/initialize_account_2.rs @@ -27,7 +27,7 @@ pub struct InitializeAccount2<'a> { pub owner: &'a Pubkey, } -impl<'a> InitializeAccount2<'a> { +impl InitializeAccount2<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/initialize_account_3.rs b/programs/token/src/instructions/initialize_account_3.rs index 3c8f355..65c0639 100644 --- a/programs/token/src/instructions/initialize_account_3.rs +++ b/programs/token/src/instructions/initialize_account_3.rs @@ -24,7 +24,7 @@ pub struct InitializeAccount3<'a> { pub owner: &'a Pubkey, } -impl<'a> InitializeAccount3<'a> { +impl InitializeAccount3<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/initialize_mint.rs b/programs/token/src/instructions/initialize_mint.rs index 9fbd647..2e93eea 100644 --- a/programs/token/src/instructions/initialize_mint.rs +++ b/programs/token/src/instructions/initialize_mint.rs @@ -28,7 +28,7 @@ pub struct InitializeMint<'a> { pub freeze_authority: Option<&'a Pubkey>, } -impl<'a> InitializeMint<'a> { +impl InitializeMint<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/initialize_mint_2.rs b/programs/token/src/instructions/initialize_mint_2.rs index 1954dd6..7bf9f81 100644 --- a/programs/token/src/instructions/initialize_mint_2.rs +++ b/programs/token/src/instructions/initialize_mint_2.rs @@ -25,7 +25,7 @@ pub struct InitializeMint2<'a> { pub freeze_authority: Option<&'a Pubkey>, } -impl<'a> InitializeMint2<'a> { +impl InitializeMint2<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/mint_to.rs b/programs/token/src/instructions/mint_to.rs index 83e034b..91ce6f9 100644 --- a/programs/token/src/instructions/mint_to.rs +++ b/programs/token/src/instructions/mint_to.rs @@ -27,7 +27,7 @@ pub struct MintTo<'a> { pub amount: u64, } -impl<'a> MintTo<'a> { +impl MintTo<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/mint_to_checked.rs b/programs/token/src/instructions/mint_to_checked.rs index 0a176f2..9496932 100644 --- a/programs/token/src/instructions/mint_to_checked.rs +++ b/programs/token/src/instructions/mint_to_checked.rs @@ -29,7 +29,7 @@ pub struct MintToChecked<'a> { pub decimals: u8, } -impl<'a> MintToChecked<'a> { +impl MintToChecked<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/revoke.rs b/programs/token/src/instructions/revoke.rs index 9cb497c..cbb4c81 100644 --- a/programs/token/src/instructions/revoke.rs +++ b/programs/token/src/instructions/revoke.rs @@ -17,7 +17,7 @@ pub struct Revoke<'a> { pub authority: &'a AccountInfo, } -impl<'a> Revoke<'a> { +impl Revoke<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/set_authority.rs b/programs/token/src/instructions/set_authority.rs index 2ded29b..ec39bbe 100644 --- a/programs/token/src/instructions/set_authority.rs +++ b/programs/token/src/instructions/set_authority.rs @@ -38,7 +38,7 @@ pub struct SetAuthority<'a> { pub new_authority: Option<&'a Pubkey>, } -impl<'a> SetAuthority<'a> { +impl SetAuthority<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/sync_native.rs b/programs/token/src/instructions/sync_native.rs index 46a192e..b6ea680 100644 --- a/programs/token/src/instructions/sync_native.rs +++ b/programs/token/src/instructions/sync_native.rs @@ -16,7 +16,7 @@ pub struct SyncNative<'a> { pub native_token: &'a AccountInfo, } -impl<'a> SyncNative<'a> { +impl SyncNative<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/thaw_account.rs b/programs/token/src/instructions/thaw_account.rs index a2dc4e4..1ffacf9 100644 --- a/programs/token/src/instructions/thaw_account.rs +++ b/programs/token/src/instructions/thaw_account.rs @@ -20,7 +20,7 @@ pub struct ThawAccount<'a> { pub freeze_authority: &'a AccountInfo, } -impl<'a> ThawAccount<'a> { +impl ThawAccount<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/transfer.rs b/programs/token/src/instructions/transfer.rs index ad58ce1..389b0c2 100644 --- a/programs/token/src/instructions/transfer.rs +++ b/programs/token/src/instructions/transfer.rs @@ -26,7 +26,7 @@ pub struct Transfer<'a> { pub amount: u64, } -impl<'a> Transfer<'a> { +impl Transfer<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/programs/token/src/instructions/transfer_checked.rs b/programs/token/src/instructions/transfer_checked.rs index c4ded10..f973e95 100644 --- a/programs/token/src/instructions/transfer_checked.rs +++ b/programs/token/src/instructions/transfer_checked.rs @@ -31,7 +31,7 @@ pub struct TransferChecked<'a> { pub decimals: u8, } -impl<'a> TransferChecked<'a> { +impl TransferChecked<'_> { #[inline(always)] pub fn invoke(&self) -> ProgramResult { self.invoke_signed(&[]) diff --git a/sdk/pinocchio/src/account_info.rs b/sdk/pinocchio/src/account_info.rs index ef1338d..a59f03c 100644 --- a/sdk/pinocchio/src/account_info.rs +++ b/sdk/pinocchio/src/account_info.rs @@ -504,14 +504,14 @@ impl<'a, T: ?Sized> Ref<'a, T> { } } -impl<'a, T: ?Sized> core::ops::Deref for Ref<'a, T> { +impl core::ops::Deref for Ref<'_, T> { type Target = T; fn deref(&self) -> &Self::Target { unsafe { self.value.as_ref() } } } -impl<'a, T: ?Sized> Drop for Ref<'a, T> { +impl Drop for Ref<'_, T> { // decrement the immutable borrow count fn drop(&mut self) { unsafe { *self.state.as_mut() -= 1 << self.borrow_shift }; @@ -576,19 +576,19 @@ impl<'a, T: ?Sized> RefMut<'a, T> { } } -impl<'a, T: ?Sized> core::ops::Deref for RefMut<'a, T> { +impl core::ops::Deref for RefMut<'_, T> { type Target = T; fn deref(&self) -> &Self::Target { unsafe { self.value.as_ref() } } } -impl<'a, T: ?Sized> core::ops::DerefMut for RefMut<'a, T> { +impl core::ops::DerefMut for RefMut<'_, T> { fn deref_mut(&mut self) -> &mut ::Target { unsafe { self.value.as_mut() } } } -impl<'a, T: ?Sized> Drop for RefMut<'a, T> { +impl Drop for RefMut<'_, T> { // unset the mutable borrow flag fn drop(&mut self) { unsafe { *self.state.as_mut() &= self.borrow_mask }; diff --git a/sdk/pinocchio/src/sysvars/fees.rs b/sdk/pinocchio/src/sysvars/fees.rs index 7e88930..756f0ba 100644 --- a/sdk/pinocchio/src/sysvars/fees.rs +++ b/sdk/pinocchio/src/sysvars/fees.rs @@ -7,7 +7,6 @@ use crate::impl_sysvar_get; #[derive(Debug, Default, Clone, Copy)] pub struct FeeCalculator { /// The current cost of a signature in lamports. - /// This amount may increase/decrease over time based on cluster processing /// load. pub lamports_per_signature: u64,