Skip to content

Commit cc66838

Browse files
committed
units: Remove unnecessary code comments
These comments to not add much value - remove them.
1 parent 72823df commit cc66838

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

units/src/block.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)