From 884b761b6d3bae9210a11ad8487cea4ef9f4def1 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Wed, 13 Nov 2024 06:17:37 +0900 Subject: [PATCH] avoid the use of `extend_from_slice` when appending instructions --- .../src/extension/confidential_mint_burn/instruction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/token/program-2022/src/extension/confidential_mint_burn/instruction.rs b/token/program-2022/src/extension/confidential_mint_burn/instruction.rs index b4abbb755b4..3fd523d18c2 100644 --- a/token/program-2022/src/extension/confidential_mint_burn/instruction.rs +++ b/token/program-2022/src/extension/confidential_mint_burn/instruction.rs @@ -337,7 +337,7 @@ pub fn rotate_supply_elgamal_pubkey( }, )]; - instructions.extend_from_slice(&proof_instructions); + instructions.extend(proof_instructions); Ok(instructions) } @@ -461,7 +461,7 @@ pub fn confidential_mint_with_split_proofs( }, )]; - instructions.extend_from_slice(&proof_instructions); + instructions.extend(proof_instructions); Ok(instructions) } @@ -543,7 +543,7 @@ pub fn confidential_burn_with_split_proofs( }, )]; - instructions.extend_from_slice(&proof_instructions); + instructions.extend(proof_instructions); Ok(instructions) }