File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ pub fn multihash(s: Structure) -> TokenStream {
345
345
use #mh_crate:: Hasher ;
346
346
match self {
347
347
#( #code_digest, ) *
348
+ _ => unreachable!( ) ,
348
349
}
349
350
}
350
351
@@ -363,6 +364,7 @@ pub fn multihash(s: Structure) -> TokenStream {
363
364
fn from( code: #code_enum) -> Self {
364
365
match code {
365
366
#( #code_into_u64, ) *
367
+ _ => unreachable!( ) ,
366
368
}
367
369
}
368
370
}
@@ -417,6 +419,7 @@ mod tests {
417
419
let digest = multihash:: Strobe256 :: digest( input) ;
418
420
Multihash :: wrap( 0x38b64f , & digest. as_ref( ) ) . unwrap( )
419
421
} ,
422
+ _ => unreachable!( ) ,
420
423
}
421
424
}
422
425
@@ -437,6 +440,7 @@ mod tests {
437
440
match code {
438
441
Code :: Identity256 => multihash:: IDENTITY ,
439
442
Code :: Strobe256 => 0x38b64f ,
443
+ _ => unreachable!( ) ,
440
444
}
441
445
}
442
446
}
You can’t perform that action at this time.
0 commit comments