File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -1097,22 +1097,18 @@ mod tests {
1097
1097
. get_root_as_reader :: < test_union_defaults:: Reader < ' _ > > ( )
1098
1098
. expect ( "get_root_as_reader()" ) ;
1099
1099
let field = reader. get_s16s8s64s8_set ( ) . unwrap ( ) ;
1100
- if let test_union:: union0:: U0f0s16 ( _) = field. get_union0 ( ) . which ( ) . unwrap ( ) {
1101
- } else {
1100
+ let test_union:: union0:: U0f0s16 ( _) = field. get_union0 ( ) . which ( ) . unwrap ( ) else {
1102
1101
panic ! ( "expected U0f0s16" ) ;
1103
- }
1102
+ } ;
1104
1103
1105
- if let test_union_defaults:: inner1:: A ( 17 ) = reader. get_inner1 ( ) . which ( ) . unwrap ( ) {
1106
- } else {
1104
+ let test_union_defaults:: inner1:: A ( 17 ) = reader. get_inner1 ( ) . which ( ) . unwrap ( ) else {
1107
1105
panic ! ( "" )
1108
- }
1106
+ } ;
1109
1107
1110
- if let test_union_defaults:: inner2:: C ( Ok ( "grault" ) ) =
1111
- reader. get_inner2 ( ) . which ( ) . unwrap ( )
1112
- {
1113
- } else {
1108
+ let test_union_defaults:: inner2:: C ( Ok ( "grault" ) ) = reader. get_inner2 ( ) . which ( ) . unwrap ( )
1109
+ else {
1114
1110
panic ! ( "" )
1115
- }
1111
+ } ;
1116
1112
}
1117
1113
}
1118
1114
You can’t perform that action at this time.
0 commit comments