Skip to content

Commit 12befa0

Browse files
committed
chore: temporarily add #[allow({irrefutable_let,unreachable}_patterns)]
1 parent b5dd787 commit 12befa0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

imap-types/src/arbitrary.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ macro_rules! impl_arbitrary_try_from {
3030
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
3131
match <$target>::try_from(<$from>::arbitrary(u)?) {
3232
Ok(passed) => Ok(passed),
33+
#[allow(unreachable_patterns)]`
3334
Err(_) => Err(arbitrary::Error::IncorrectFormat),
3435
}
3536
}

imap-types/src/sequence.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ macro_rules! impl_try_from_num {
224224
type Error = ValidationError;
225225

226226
fn try_from(value: $num) -> Result<Self, Self::Error> {
227+
#[allow(irrefutable_let_patterns)]
227228
if let Ok(value) = u32::try_from(value) {
228229
if let Ok(value) = NonZeroU32::try_from(value) {
229230
return Ok(Self::Value(value));

0 commit comments

Comments
 (0)