We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab33fb7 commit 72ad45aCopy full SHA for 72ad45a
src/primitives/hrp.rs
@@ -263,7 +263,7 @@ impl Hrp {
263
/// Guaranteed to be between 1 and 83 inclusive.
264
#[inline]
265
#[allow(clippy::len_without_is_empty)] // HRP is never empty.
266
- pub fn len(&self) -> usize { self.size }
+ pub const fn len(&self) -> usize { self.size }
267
268
/// Returns `true` if this HRP is valid according to the bips.
269
///
0 commit comments