diff --git a/tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority/src/lib.rs b/tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority/src/lib.rs index f4530b7f3..90b19f946 100644 --- a/tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority/src/lib.rs +++ b/tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority/src/lib.rs @@ -57,7 +57,7 @@ pub struct Initialize<'info> { } // helper to check mint data, and demonstrate how to read mint extension data within a program -impl<'info> Initialize<'info> { +impl Initialize<'_> { pub fn check_mint_data(&self) -> Result<()> { let mint = &self.mint_account.to_account_info(); let mint_data = mint.data.borrow(); diff --git a/tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook/src/lib.rs b/tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook/src/lib.rs index 6b6ada5d6..38a9bf024 100644 --- a/tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook/src/lib.rs +++ b/tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook/src/lib.rs @@ -106,7 +106,7 @@ pub struct Initialize<'info> { } // helper to check mint data, and demonstrate how to read mint extension data within a program -impl<'info> Initialize<'info> { +impl Initialize<'_> { pub fn check_mint_data(&self) -> Result<()> { let mint = &self.mint_account.to_account_info(); let mint_data = mint.data.borrow();