Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2d795f1

Browse files
[token22] Avoid the use of extend_from_slice when appending instructions (#7489)
avoid the use of `extend_from_slice` when appending instructions
1 parent ab998a9 commit 2d795f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

token/program-2022/src/extension/confidential_mint_burn/instruction.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ pub fn rotate_supply_elgamal_pubkey(
337337
},
338338
)];
339339

340-
instructions.extend_from_slice(&proof_instructions);
340+
instructions.extend(proof_instructions);
341341

342342
Ok(instructions)
343343
}
@@ -461,7 +461,7 @@ pub fn confidential_mint_with_split_proofs(
461461
},
462462
)];
463463

464-
instructions.extend_from_slice(&proof_instructions);
464+
instructions.extend(proof_instructions);
465465

466466
Ok(instructions)
467467
}
@@ -543,7 +543,7 @@ pub fn confidential_burn_with_split_proofs(
543543
},
544544
)];
545545

546-
instructions.extend_from_slice(&proof_instructions);
546+
instructions.extend(proof_instructions);
547547

548548
Ok(instructions)
549549
}

0 commit comments

Comments
 (0)