Skip to content

Commit

Permalink
chore: temporarily add `#[allow({irrefutable_let,unreachable}_pattern…
Browse files Browse the repository at this point in the history
…s)]`
  • Loading branch information
duesee committed Aug 15, 2024
1 parent b5dd787 commit 12befa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions imap-types/src/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ macro_rules! impl_arbitrary_try_from {
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
match <$target>::try_from(<$from>::arbitrary(u)?) {
Ok(passed) => Ok(passed),
#[allow(unreachable_patterns)]`
Err(_) => Err(arbitrary::Error::IncorrectFormat),
}
}
Expand Down
1 change: 1 addition & 0 deletions imap-types/src/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ macro_rules! impl_try_from_num {
type Error = ValidationError;

fn try_from(value: $num) -> Result<Self, Self::Error> {
#[allow(irrefutable_let_patterns)]
if let Ok(value) = u32::try_from(value) {
if let Ok(value) = NonZeroU32::try_from(value) {
return Ok(Self::Value(value));
Expand Down

0 comments on commit 12befa0

Please sign in to comment.