From 12f921386ff55050358c2f412b6fa5990108667b Mon Sep 17 00:00:00 2001 From: Florian Hartwig Date: Wed, 31 Aug 2022 21:20:53 +0200 Subject: [PATCH] Make CommitmentLevel constructors const (#27367) make CommitmentLevel constructors const --- sdk/src/commitment_config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/commitment_config.rs b/sdk/src/commitment_config.rs index a3f7da1cb685bd..1c5d3d0c8c2644 100644 --- a/sdk/src/commitment_config.rs +++ b/sdk/src/commitment_config.rs @@ -60,19 +60,19 @@ impl CommitmentConfig { } } - pub fn finalized() -> Self { + pub const fn finalized() -> Self { Self { commitment: CommitmentLevel::Finalized, } } - pub fn confirmed() -> Self { + pub const fn confirmed() -> Self { Self { commitment: CommitmentLevel::Confirmed, } } - pub fn processed() -> Self { + pub const fn processed() -> Self { Self { commitment: CommitmentLevel::Processed, }