From cc66838e804a6ceed6e1ac596727db948c9bda08 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 3 Mar 2025 13:05:35 +1100 Subject: [PATCH] units: Remove unnecessary code comments These comments to not add much value - remove them. --- units/src/block.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/units/src/block.rs b/units/src/block.rs index 49bd88ac9..9e8475db4 100644 --- a/units/src/block.rs +++ b/units/src/block.rs @@ -44,11 +44,9 @@ impl BlockHeight { pub const MAX: Self = BlockHeight(u32::MAX); /// Constructs a new block height from a `u32`. - // Because From 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 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 } }