Skip to content

Commit 08bf2f3

Browse files
committed
fix clippy transfer-hook mint-close-authority
1 parent d0fcb0b commit 08bf2f3

File tree

2 files changed

+2
-2
lines changed
  • tokens/token-2022
    • mint-close-authority/anchor/programs/mint-close-authority/src
    • transfer-hook/hello-world/anchor/programs/transfer-hook/src

2 files changed

+2
-2
lines changed

tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct Initialize<'info> {
5757
}
5858

5959
// helper to check mint data, and demonstrate how to read mint extension data within a program
60-
impl<'info> Initialize<'info> {
60+
impl Initialize<'_> {
6161
pub fn check_mint_data(&self) -> Result<()> {
6262
let mint = &self.mint_account.to_account_info();
6363
let mint_data = mint.data.borrow();

tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub struct Initialize<'info> {
106106
}
107107

108108
// helper to check mint data, and demonstrate how to read mint extension data within a program
109-
impl<'info> Initialize<'info> {
109+
impl Initialize<'_> {
110110
pub fn check_mint_data(&self) -> Result<()> {
111111
let mint = &self.mint_account.to_account_info();
112112
let mint_data = mint.data.borrow();

0 commit comments

Comments
 (0)