From 0e8e13d59401a7210c5190138eaa878bffbb746a Mon Sep 17 00:00:00 2001 From: Jon C Date: Wed, 30 Oct 2024 12:15:03 +0100 Subject: [PATCH] Re-run cargo fmt after doc comment update --- libraries/type-length-value/src/state.rs | 3 ++- token-lending/program/src/instruction.rs | 12 ++++++------ token-swap/program/src/instruction.rs | 4 ++-- .../extension/confidential_transfer/instruction.rs | 3 ++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/libraries/type-length-value/src/state.rs b/libraries/type-length-value/src/state.rs index ac7a60054ad..11b933862ee 100644 --- a/libraries/type-length-value/src/state.rs +++ b/libraries/type-length-value/src/state.rs @@ -375,7 +375,8 @@ impl<'data> TlvStateMut<'data> { /// Packs the default TLV data into the first open slot in the data buffer. /// Handles repetition based on the boolean arg provided: - /// * `true`: If extension is already found in the buffer, it returns an error. + /// * `true`: If extension is already found in the buffer, it returns an + /// error. /// * `false`: Will add a new entry to the next open slot. pub fn init_value( &mut self, diff --git a/token-lending/program/src/instruction.rs b/token-lending/program/src/instruction.rs index 8546565b7a4..3ef6841230b 100644 --- a/token-lending/program/src/instruction.rs +++ b/token-lending/program/src/instruction.rs @@ -158,8 +158,10 @@ pub enum LendingInstruction { /// /// 0. `[writable]` Obligation account. /// 1. `[]` Clock sysvar. - /// 2. .. `[]` Collateral deposit reserve accounts - refreshed, all, in order. - /// 3. .. `[]` Liquidity borrow reserve accounts - refreshed, all, in order. + /// 2. .. `[]` Collateral deposit reserve accounts - refreshed, all, in + /// order. + /// 3. .. `[]` Liquidity borrow reserve accounts - refreshed, all, in + /// order. RefreshObligation, // 8 @@ -319,10 +321,8 @@ pub enum LendingInstruction { /// above). /// 2. `[]` Token program id /// 3. .. `[any]` Additional accounts provided to the lending program's - /// `FlashLoan` instruction above. ReceiveFlashLoan { - /// // Amount that must be repaid by the receiver program - /// amount: u64 - /// } + /// `FlashLoan` instruction above. ReceiveFlashLoan { // Amount that + /// must be repaid by the receiver program amount: u64 } FlashLoan { /// The amount that is to be borrowed - u64::MAX for up to 100% of /// available liquidity diff --git a/token-swap/program/src/instruction.rs b/token-swap/program/src/instruction.rs index cc84c77af65..874727d3d35 100644 --- a/token-swap/program/src/instruction.rs +++ b/token-swap/program/src/instruction.rs @@ -107,8 +107,8 @@ pub enum SwapInstruction { /// 3. `[]` token_b Account. Must be non zero, owned by swap authority. /// 4. `[writable]` Pool Token Mint. Must be empty, owned by swap /// authority. - /// 5. `[]` Pool Token Account to deposit trading and withdraw fees. - /// Must be empty, not owned by swap authority + /// 5. `[]` Pool Token Account to deposit trading and withdraw fees. Must + /// be empty, not owned by swap authority /// 6. `[writable]` Pool Token Account to deposit the initial pool token /// supply. Must be empty, not owned by swap authority. /// 7. `[]` Pool Token program id diff --git a/token/program-2022/src/extension/confidential_transfer/instruction.rs b/token/program-2022/src/extension/confidential_transfer/instruction.rs index e1b591ac058..48c4bea411f 100644 --- a/token/program-2022/src/extension/confidential_transfer/instruction.rs +++ b/token/program-2022/src/extension/confidential_transfer/instruction.rs @@ -473,7 +473,8 @@ pub enum ConfidentialTransferInstruction { /// 9. `[]` (Optional) Range proof record account or context state /// account. /// 10. `[]` The multisig source account owner. - /// 11. .. `[signer]` Required M signer accounts for the SPL Token Multisig + /// 11. .. `[signer]` Required M signer accounts for the SPL Token + /// Multisig /// /// Data expected by this instruction: /// `TransferWithFeeInstructionData`