Skip to content

Commit 5c9a764

Browse files
committed
style: cargo fmt
1 parent 62051a3 commit 5c9a764

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/coverage/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ mod tests {
176176
store.on_line("src/main.go", 10, 1);
177177

178178
let patterns = [Regex::new(r"^pkg/mongodb").expect("regex")];
179-
let report = analyze_changed_coverage(&changed_files, &store, true, &patterns)
180-
.expect("report");
179+
let report =
180+
analyze_changed_coverage(&changed_files, &store, true, &patterns).expect("report");
181181

182182
assert_eq!(report.total_changed, 1);
183183
assert_eq!(report.total_covered, 1);

src/report/console.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ pub fn render_to<W: Write + ?Sized>(
5353

5454
if !report.skipped_files.is_empty() {
5555
writeln!(out)?;
56-
let header = "Skipped paths from uncovered line calculation (matched --skip-coverage-path):";
56+
let header =
57+
"Skipped paths from uncovered line calculation (matched --skip-coverage-path):";
5758
if use_color {
5859
writeln!(out, "{}", header.yellow().bold())?;
5960
} else {

src/report/summary.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ pub fn render_to<W: Write + ?Sized>(
2727
"Skipped paths from uncovered line calculation (matched --skip-coverage-path):"
2828
)?;
2929
for skipped in &report.skipped_files {
30-
writeln!(
31-
out,
32-
"- {} (matched {})",
33-
skipped.path, skipped.pattern
34-
)?;
30+
writeln!(out, "- {} (matched {})", skipped.path, skipped.pattern)?;
3531
}
3632
}
3733

0 commit comments

Comments
 (0)