Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/primitives/hrp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,9 @@ impl Hrp {
///
/// Guaranteed to be between 1 and 83 inclusive.
#[inline]
#[allow(clippy::len_without_is_empty)] // HRP is never empty.
pub fn len(&self) -> usize { self.size }

/// Always false, the human-readable part is guaranteed to be between 1-83 characters.
#[inline]
pub fn is_empty(&self) -> bool { false }

/// Returns `true` if this [`Hrp`] is valid according to the bips.
///
/// [BIP-173] states that the HRP must be either "bc" or "tb".
Expand Down