We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[allow({irrefutable_let,unreachable}_patterns)]
1 parent b5dd787 commit 29d2b4eCopy full SHA for 29d2b4e
2 files changed
imap-types/src/arbitrary.rs
@@ -30,6 +30,7 @@ macro_rules! impl_arbitrary_try_from {
30
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
31
match <$target>::try_from(<$from>::arbitrary(u)?) {
32
Ok(passed) => Ok(passed),
33
+ #[allow(unreachable_patterns)]
34
Err(_) => Err(arbitrary::Error::IncorrectFormat),
35
}
36
imap-types/src/sequence.rs
@@ -224,6 +224,7 @@ macro_rules! impl_try_from_num {
224
type Error = ValidationError;
225
226
fn try_from(value: $num) -> Result<Self, Self::Error> {
227
+ #[allow(irrefutable_let_patterns)]
228
if let Ok(value) = u32::try_from(value) {
229
if let Ok(value) = NonZeroU32::try_from(value) {
230
return Ok(Self::Value(value));
0 commit comments