File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ macro_rules! impl_arbitrary_try_from {
30
30
fn arbitrary( u: & mut Unstructured <' a>) -> arbitrary:: Result <Self > {
31
31
match <$target>:: try_from( <$from>:: arbitrary( u) ?) {
32
32
Ok ( passed) => Ok ( passed) ,
33
+ #[ allow( unreachable_patterns) ] `
33
34
Err ( _) => Err ( arbitrary:: Error :: IncorrectFormat ) ,
34
35
}
35
36
}
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ macro_rules! impl_try_from_num {
224
224
type Error = ValidationError ;
225
225
226
226
fn try_from( value: $num) -> Result <Self , Self :: Error > {
227
+ #[ allow( irrefutable_let_patterns) ]
227
228
if let Ok ( value) = u32 :: try_from( value) {
228
229
if let Ok ( value) = NonZeroU32 :: try_from( value) {
229
230
return Ok ( Self :: Value ( value) ) ;
You can’t perform that action at this time.
0 commit comments