Make CommitmentLevel constructors const (#27367)
make CommitmentLevel constructors const
This commit is contained in:
parent
2e7dc64dbd
commit
12f921386f
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue