Ver código fonte

fix clippy native

Ayush 9 meses atrás
pai
commit
2223dd9962

+ 0 - 1
Cargo.lock

@@ -7,7 +7,6 @@ name = "account-data-anchor-program-example"
 version = "0.1.0"
 dependencies = [
  "anchor-lang",
- "solana-program",
 ]
 
 [[package]]

+ 0 - 1
Cargo.toml

@@ -55,7 +55,6 @@ members = [
     # "tokens/token-2022/transfer-hook/whitelist/anchor/programs/*"
 ]
 resolver = "2"
-edition = "2021"
 
 [profile.release]
 overflow-checks = true

+ 1 - 1
tokens/token-2022/permanent-delegate/anchor/programs/permanent-delegate/src/lib.rs

@@ -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();