Skip to content

Commit

Permalink
fix clippy transfer-hook mint-close-authority
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh committed Dec 28, 2024
1 parent d0fcb0b commit 08bf2f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 08bf2f3

Please sign in to comment.