File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,9 @@ impl BlockHeight {
4444 pub const MAX : Self = BlockHeight ( u32:: MAX ) ;
4545
4646 /// Constructs a new block height from a `u32`.
47- // Because From<u32> is not const.
4847 pub const fn from_u32 ( inner : u32 ) -> Self { Self ( inner) }
4948
5049 /// Returns block height as a `u32`.
51- // Because type inference doesn't always work using `Into`.
5250 pub const fn to_u32 ( self ) -> u32 { self . 0 }
5351}
5452
@@ -111,11 +109,9 @@ impl BlockInterval {
111109 pub const MAX : Self = BlockInterval ( u32:: MAX ) ;
112110
113111 /// Constructs a new block interval from a `u32`.
114- // Because From<u32> is not const.
115112 pub const fn from_u32 ( inner : u32 ) -> Self { Self ( inner) }
116113
117114 /// Returns block interval as a `u32`.
118- // Because type inference doesn't always work using `Into`.
119115 pub const fn to_u32 ( self ) -> u32 { self . 0 }
120116}
121117
You can’t perform that action at this time.
0 commit comments