units: Remove unnecessary code comments

These comments to not add much value - remove them.
This commit is contained in:
Tobin C. Harding 2025-03-03 13:05:35 +11:00
parent 72823df014
commit cc66838e80
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 4 deletions

View File

@ -44,11 +44,9 @@ impl BlockHeight {
pub const MAX: Self = BlockHeight(u32::MAX);
/// Constructs a new block height from a `u32`.
// Because From<u32> is not const.
pub const fn from_u32(inner: u32) -> Self { Self(inner) }
/// Returns block height as a `u32`.
// Because type inference doesn't always work using `Into`.
pub const fn to_u32(self) -> u32 { self.0 }
}
@ -111,11 +109,9 @@ impl BlockInterval {
pub const MAX: Self = BlockInterval(u32::MAX);
/// Constructs a new block interval from a `u32`.
// Because From<u32> is not const.
pub const fn from_u32(inner: u32) -> Self { Self(inner) }
/// Returns block interval as a `u32`.
// Because type inference doesn't always work using `Into`.
pub const fn to_u32(self) -> u32 { self.0 }
}