We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e877e36 commit dbaa7e2Copy full SHA for dbaa7e2
1 file changed
src/coverage/coverage_mapping.rs
@@ -200,7 +200,7 @@ impl<'a> CoverageMapping<'a> {
200
};
201
202
region_ids.insert(counter, count);
203
- if let Some(expr_region) = func.regions.iter().find(|x| {
+ for expr_region in func.regions.iter().filter(|x| {
204
x.count.is_expression() && x.count.id == expr_index as u64
205
}) {
206
let result = report
@@ -256,7 +256,7 @@ impl<'a> CoverageMapping<'a> {
256
257
258
259
260
x.count.is_expression() && x.count.id == *expr_index as u64
261
262
0 commit comments