Skip to content

Commit 72ad45a

Browse files
committed
hrp len const fn
1 parent ab33fb7 commit 72ad45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/hrp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl Hrp {
263263
/// Guaranteed to be between 1 and 83 inclusive.
264264
#[inline]
265265
#[allow(clippy::len_without_is_empty)] // HRP is never empty.
266-
pub fn len(&self) -> usize { self.size }
266+
pub const fn len(&self) -> usize { self.size }
267267

268268
/// Returns `true` if this HRP is valid according to the bips.
269269
///

0 commit comments

Comments
 (0)