Skip to content

Commit 4ab1b77

Browse files
committed
blech32: delete unconstructable iterator struct
Recent versions of rustc notice when public structs cannot be constructed. In this case, the struct in question a copy-and-paste from the bech32 segwit module, and it was unneeded and (clearly) unused.
1 parent a89ff6e commit 4ab1b77

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/blech32/decode.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -452,19 +452,6 @@ impl<'s> ExactSizeIterator for ByteIter<'s> {
452452
fn len(&self) -> usize { self.iter.len() }
453453
}
454454

455-
/// An iterator over a parsed HRP string data as field elements.
456-
pub struct Fe32Iter<'s> {
457-
iter: AsciiToFe32Iter<iter::Copied<slice::Iter<'s, u8>>>,
458-
}
459-
460-
impl<'s> Iterator for Fe32Iter<'s> {
461-
type Item = Fe32;
462-
#[inline]
463-
fn next(&mut self) -> Option<Fe32> { self.iter.next() }
464-
#[inline]
465-
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
466-
}
467-
468455
/// Helper iterator adaptor that maps an iterator of valid bech32 character ASCII bytes to an
469456
/// iterator of field elements.
470457
///

0 commit comments

Comments
 (0)