@@ -142,27 +142,24 @@ fn create_mappings<'tcx>(
142
142
143
143
mappings. extend ( coverage_spans. all_bcb_mappings ( ) . filter_map (
144
144
|BcbMapping { kind : bcb_mapping_kind, span } | {
145
- let kind = match bcb_mapping_kind {
146
- BcbMappingKind :: Code ( bcb) => MappingKind :: Code ( term_for_bcb ( * bcb) ) ,
145
+ let kind = match * bcb_mapping_kind {
146
+ BcbMappingKind :: Code ( bcb) => MappingKind :: Code ( term_for_bcb ( bcb) ) ,
147
147
BcbMappingKind :: Branch { true_bcb, false_bcb, condition_info } => {
148
148
if condition_info. condition_id == ConditionId :: NONE {
149
149
MappingKind :: Branch {
150
- true_term : term_for_bcb ( * true_bcb) ,
151
- false_term : term_for_bcb ( * false_bcb) ,
150
+ true_term : term_for_bcb ( true_bcb) ,
151
+ false_term : term_for_bcb ( false_bcb) ,
152
152
}
153
153
} else {
154
154
MappingKind :: MCDCBranch {
155
- true_term : term_for_bcb ( * true_bcb) ,
156
- false_term : term_for_bcb ( * false_bcb) ,
157
- mcdc_params : * condition_info,
155
+ true_term : term_for_bcb ( true_bcb) ,
156
+ false_term : term_for_bcb ( false_bcb) ,
157
+ mcdc_params : condition_info,
158
158
}
159
159
}
160
160
}
161
161
BcbMappingKind :: Decision { bitmap_idx, conditions_num, .. } => {
162
- MappingKind :: MCDCDecision ( DecisionInfo {
163
- bitmap_idx : * bitmap_idx,
164
- conditions_num : * conditions_num,
165
- } )
162
+ MappingKind :: MCDCDecision ( DecisionInfo { bitmap_idx, conditions_num } )
166
163
}
167
164
} ;
168
165
let code_region = make_code_region ( source_map, file_name, * span, body_span) ?;
0 commit comments