feat: update rust to 1.94.0

This commit is contained in:
Daniil Polyakov
2026-03-17 21:25:30 +03:00
parent 3b0e842a42
commit 252848a145
68 changed files with 440 additions and 436 deletions
+4 -4
View File
@@ -26,7 +26,7 @@ pub enum Instruction {
amm_program_id: ProgramId,
},
/// Adds liquidity to the Pool
/// Adds liquidity to the Pool.
///
/// Required accounts:
/// - AMM Pool (initialized)
@@ -42,7 +42,7 @@ pub enum Instruction {
max_amount_to_add_token_b: u128,
},
/// Removes liquidity from the Pool
/// Removes liquidity from the Pool.
///
/// Required accounts:
/// - AMM Pool (initialized)
@@ -85,11 +85,11 @@ pub struct PoolDefinition {
pub liquidity_pool_supply: u128,
pub reserve_a: u128,
pub reserve_b: u128,
/// Fees are currently not used
/// Fees are currently not used.
pub fees: u128,
/// A pool becomes inactive (active = false)
/// once all of its liquidity has been removed (e.g., reserves are emptied and
/// `liquidity_pool_supply` = 0)
/// `liquidity_pool_supply` = 0).
pub active: bool,
}
+2 -2
View File
@@ -29,7 +29,7 @@ pub enum Instruction {
/// - Token Metadata account (uninitialized).
NewDefinitionWithMetadata {
new_definition: NewTokenDefinition,
/// Boxed to avoid large enum variant size
/// Boxed to avoid large enum variant size.
metadata: Box<NewTokenMetadata>,
},
@@ -196,7 +196,7 @@ impl From<&TokenHolding> for Data {
pub struct NewTokenMetadata {
/// Metadata standard.
pub standard: MetadataStandard,
/// Pointer to off-chain metadata
/// Pointer to off-chain metadata.
pub uri: String,
/// Creators of the token.
pub creators: String,