Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Re-run cargo fmt after doc comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Oct 30, 2024
1 parent 4b190a1 commit 0e8e13d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion libraries/type-length-value/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<V: SplDiscriminate + Pod + Default>(
&mut self,
Expand Down
12 changes: 6 additions & 6 deletions token-lending/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions token-swap/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 0e8e13d

Please sign in to comment.