Skip to content

Commit

Permalink
fix clippy native
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh committed Dec 28, 2024
1 parent d37bd58 commit 2223dd9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ members = [
# "tokens/token-2022/transfer-hook/whitelist/anchor/programs/*"
]
resolver = "2"
edition = "2021"

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 2223dd9

Please sign in to comment.