Skip to content

Commit 79a5eb8

Browse files
authored
fix: Rust breaking change (#11698)
1 parent 558feaf commit 79a5eb8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/forge/src/coverage.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,8 @@ impl CoverageReporter for LcovReporter {
166166
}
167167
}
168168
CoverageItemKind::Branch { branch_id, path_id, .. } => {
169-
writeln!(
170-
out,
171-
"BRDA:{line},{branch_id},{path_id},{}",
172-
if hits == 0 { "-" } else { &hits.to_string() }
173-
)?;
169+
let hits = if hits == 0 { "-" } else { &hits.to_string() };
170+
writeln!(out, "BRDA:{line},{branch_id},{path_id},{hits}")?;
174171
}
175172
}
176173
}

0 commit comments

Comments
 (0)