Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for last couple months of CI changes #183

Merged
merged 6 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 0 additions & 11 deletions api/all-features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,41 +489,34 @@ impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitive
impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<Ck: bech32::primitives::checksum::Checksum> bech32::primitives::checksum::Engine<Ck>
Expand Down Expand Up @@ -815,8 +808,6 @@ pub fn bech32::primitives::decode::CodeLengthError::clone(&self) -> bech32::prim
pub fn bech32::primitives::decode::CodeLengthError::eq(&self, other: &bech32::primitives::decode::CodeLengthError) -> bool
pub fn bech32::primitives::decode::CodeLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn bech32::primitives::decode::CodeLengthError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
pub fn bech32::primitives::decode::Fe32Iter<'s>::next(&mut self) -> core::option::Option<bech32::primitives::gf32::Fe32>
pub fn bech32::primitives::decode::Fe32Iter<'s>::size_hint(&self) -> (usize, core::option::Option<usize>)
pub fn bech32::primitives::decode::PaddingError::clone(&self) -> bech32::primitives::decode::PaddingError
pub fn bech32::primitives::decode::PaddingError::eq(&self, other: &bech32::primitives::decode::PaddingError) -> bool
pub fn bech32::primitives::decode::PaddingError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
Expand Down Expand Up @@ -1040,7 +1031,6 @@ pub struct bech32::primitives::checksum::PackedNull
pub struct bech32::primitives::decode::AsciiToFe32Iter<'s>
pub struct bech32::primitives::decode::ByteIter<'s>
pub struct bech32::primitives::decode::CheckedHrpstring<'s>
pub struct bech32::primitives::decode::Fe32Iter<'s>
pub struct bech32::primitives::decode::SegwitHrpstring<'s>
pub struct bech32::primitives::decode::UncheckedHrpstring<'s>
pub struct bech32::primitives::encode::ByteIter<'hrp, I, Ck> where I: core::iter::traits::iterator::Iterator<Item = bech32::primitives::gf32::Fe32>, Ck: bech32::primitives::checksum::Checksum
Expand Down Expand Up @@ -1073,7 +1063,6 @@ pub type bech32::primitives::checksum::HrpFe32Iter<'hrp>::Item = bech32::primiti
pub type bech32::primitives::checksum::PackedNull::Output = bech32::primitives::checksum::PackedNull
pub type bech32::primitives::decode::AsciiToFe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::decode::ByteIter<'s>::Item = u8
pub type bech32::primitives::decode::Fe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::encode::ByteIter<'a, I, Ck>::Item = u8
pub type bech32::primitives::encode::CharIter<'a, I, Ck>::Item = char
pub type bech32::primitives::encode::Fe32Iter<'hrp, I, Ck>::Item = bech32::primitives::gf32::Fe32
Expand Down
11 changes: 0 additions & 11 deletions api/alloc-only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -460,41 +460,34 @@ impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitive
impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<Ck: bech32::primitives::checksum::Checksum> bech32::primitives::checksum::Engine<Ck>
Expand Down Expand Up @@ -771,8 +764,6 @@ pub fn bech32::primitives::decode::ChecksumError::fmt(&self, f: &mut core::fmt::
pub fn bech32::primitives::decode::CodeLengthError::clone(&self) -> bech32::primitives::decode::CodeLengthError
pub fn bech32::primitives::decode::CodeLengthError::eq(&self, other: &bech32::primitives::decode::CodeLengthError) -> bool
pub fn bech32::primitives::decode::CodeLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn bech32::primitives::decode::Fe32Iter<'s>::next(&mut self) -> core::option::Option<bech32::primitives::gf32::Fe32>
pub fn bech32::primitives::decode::Fe32Iter<'s>::size_hint(&self) -> (usize, core::option::Option<usize>)
pub fn bech32::primitives::decode::PaddingError::clone(&self) -> bech32::primitives::decode::PaddingError
pub fn bech32::primitives::decode::PaddingError::eq(&self, other: &bech32::primitives::decode::PaddingError) -> bool
pub fn bech32::primitives::decode::PaddingError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
Expand Down Expand Up @@ -982,7 +973,6 @@ pub struct bech32::primitives::checksum::PackedNull
pub struct bech32::primitives::decode::AsciiToFe32Iter<'s>
pub struct bech32::primitives::decode::ByteIter<'s>
pub struct bech32::primitives::decode::CheckedHrpstring<'s>
pub struct bech32::primitives::decode::Fe32Iter<'s>
pub struct bech32::primitives::decode::SegwitHrpstring<'s>
pub struct bech32::primitives::decode::UncheckedHrpstring<'s>
pub struct bech32::primitives::encode::ByteIter<'hrp, I, Ck> where I: core::iter::traits::iterator::Iterator<Item = bech32::primitives::gf32::Fe32>, Ck: bech32::primitives::checksum::Checksum
Expand Down Expand Up @@ -1015,7 +1005,6 @@ pub type bech32::primitives::checksum::HrpFe32Iter<'hrp>::Item = bech32::primiti
pub type bech32::primitives::checksum::PackedNull::Output = bech32::primitives::checksum::PackedNull
pub type bech32::primitives::decode::AsciiToFe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::decode::ByteIter<'s>::Item = u8
pub type bech32::primitives::decode::Fe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::encode::ByteIter<'a, I, Ck>::Item = u8
pub type bech32::primitives::encode::CharIter<'a, I, Ck>::Item = char
pub type bech32::primitives::encode::Fe32Iter<'hrp, I, Ck>::Item = bech32::primitives::gf32::Fe32
Expand Down
11 changes: 0 additions & 11 deletions api/no-features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,41 +415,34 @@ impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitive
impl<'s> core::iter::traits::exact_size::ExactSizeIterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::iter::traits::iterator::Iterator for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Freeze for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Send for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Sync for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::marker::Unpin for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::RefUnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::AsciiToFe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::ByteIter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::CheckedHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::Fe32Iter<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::SegwitHrpstring<'s>
impl<'s> core::panic::unwind_safe::UnwindSafe for bech32::primitives::decode::UncheckedHrpstring<'s>
impl<Ck: bech32::primitives::checksum::Checksum> bech32::primitives::checksum::Engine<Ck>
Expand Down Expand Up @@ -712,8 +705,6 @@ pub fn bech32::primitives::decode::ChecksumError::fmt(&self, f: &mut core::fmt::
pub fn bech32::primitives::decode::CodeLengthError::clone(&self) -> bech32::primitives::decode::CodeLengthError
pub fn bech32::primitives::decode::CodeLengthError::eq(&self, other: &bech32::primitives::decode::CodeLengthError) -> bool
pub fn bech32::primitives::decode::CodeLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn bech32::primitives::decode::Fe32Iter<'s>::next(&mut self) -> core::option::Option<bech32::primitives::gf32::Fe32>
pub fn bech32::primitives::decode::Fe32Iter<'s>::size_hint(&self) -> (usize, core::option::Option<usize>)
pub fn bech32::primitives::decode::PaddingError::clone(&self) -> bech32::primitives::decode::PaddingError
pub fn bech32::primitives::decode::PaddingError::eq(&self, other: &bech32::primitives::decode::PaddingError) -> bool
pub fn bech32::primitives::decode::PaddingError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
Expand Down Expand Up @@ -907,7 +898,6 @@ pub struct bech32::primitives::checksum::PackedNull
pub struct bech32::primitives::decode::AsciiToFe32Iter<'s>
pub struct bech32::primitives::decode::ByteIter<'s>
pub struct bech32::primitives::decode::CheckedHrpstring<'s>
pub struct bech32::primitives::decode::Fe32Iter<'s>
pub struct bech32::primitives::decode::SegwitHrpstring<'s>
pub struct bech32::primitives::decode::UncheckedHrpstring<'s>
pub struct bech32::primitives::encode::ByteIter<'hrp, I, Ck> where I: core::iter::traits::iterator::Iterator<Item = bech32::primitives::gf32::Fe32>, Ck: bech32::primitives::checksum::Checksum
Expand Down Expand Up @@ -940,7 +930,6 @@ pub type bech32::primitives::checksum::HrpFe32Iter<'hrp>::Item = bech32::primiti
pub type bech32::primitives::checksum::PackedNull::Output = bech32::primitives::checksum::PackedNull
pub type bech32::primitives::decode::AsciiToFe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::decode::ByteIter<'s>::Item = u8
pub type bech32::primitives::decode::Fe32Iter<'s>::Item = bech32::primitives::gf32::Fe32
pub type bech32::primitives::encode::ByteIter<'a, I, Ck>::Item = u8
pub type bech32::primitives::encode::CharIter<'a, I, Ck>::Item = char
pub type bech32::primitives::encode::Fe32Iter<'hrp, I, Ck>::Item = bech32::primitives::gf32::Fe32
Expand Down
13 changes: 0 additions & 13 deletions src/primitives/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,19 +720,6 @@ impl<'s> ExactSizeIterator for ByteIter<'s> {
fn len(&self) -> usize { self.iter.len() }
}

/// An iterator over a parsed HRP string data as field elements.
pub struct Fe32Iter<'s> {
iter: AsciiToFe32Iter<'s>,
}

impl<'s> Iterator for Fe32Iter<'s> {
type Item = Fe32;
#[inline]
fn next(&mut self) -> Option<Fe32> { self.iter.next() }
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, that is twice this week that code that I have worked on includes types that are not constructable. Seems this should be caught by the linter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a recent addition (only last couple weeks) to the rustc "dead code" lint. It's actually pretty clever because this is a publicly exported type -- there's just no publicly-exported function that returns it.

/// Iterator adaptor that maps an iterator of valid bech32 character ASCII bytes to an
/// iterator of field elements.
///
Expand Down