We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b6b63 commit 0d3a3d8Copy full SHA for 0d3a3d8
rust/cardano-blockchain-types/src/fork.rs
@@ -25,19 +25,19 @@ impl Fork {
25
/// Is the fork for immutable data.
26
#[must_use]
27
pub fn is_immutable(&self) -> bool {
28
- self.0 == 0
+ self == &Self::IMMUTABLE
29
}
30
31
/// Is the fork for backfill data.
32
33
pub fn is_backfill(&self) -> bool {
34
- self.0 == 1
+ self == &Self::BACKFILL
35
36
37
/// Is the fork for live data.
38
39
pub fn is_live(&self) -> bool {
40
- self.0 > 1
+ self >= &Self::FIRST_LIVE
41
42
43
/// Convert an `<T>` to `Fork` (saturate if out of range).
0 commit comments