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 f982bb9 commit 0909becCopy full SHA for 0909bec
src/primitives/hrp.rs
@@ -178,12 +178,9 @@ impl Hrp {
178
///
179
/// Guaranteed to be between 1 and 83 inclusive.
180
#[inline]
181
+ #[allow(clippy::len_without_is_empty)] // HRP is never empty.
182
pub fn len(&self) -> usize { self.size }
183
- /// Always false, the human-readable part is guaranteed to be between 1-83 characters.
184
- #[inline]
185
- pub fn is_empty(&self) -> bool { false }
186
-
187
/// Returns `true` if this [`Hrp`] is valid according to the bips.
188
189
/// [BIP-173] states that the HRP must be either "bc" or "tb".
0 commit comments