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.
1 parent e6d08a0 commit 630097eCopy full SHA for 630097e
2 files changed
imap-types/src/arbitrary.rs
@@ -30,6 +30,8 @@ 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
+ // TODO(590)
34
+ #[allow(unreachable_patterns)]
35
Err(_) => Err(arbitrary::Error::IncorrectFormat),
36
}
37
imap-types/src/sequence.rs
@@ -224,6 +224,8 @@ macro_rules! impl_try_from_num {
224
type Error = ValidationError;
225
226
fn try_from(value: $num) -> Result<Self, Self::Error> {
227
228
+ #[allow(irrefutable_let_patterns)]
229
if let Ok(value) = u32::try_from(value) {
230
if let Ok(value) = NonZeroU32::try_from(value) {
231
return Ok(Self::Value(value));
0 commit comments