Skip to content

Commit f68ff6e

Browse files
committed
Reformat two lines flagged by the current rustfmt (fix CI fmt check)
The CI 'cargo fmt --check' gate failed on two pre-existing lines in src/output/vcf/records.rs and tests/integration.rs that the current stable rustfmt (1.8.0) wraps differently. Apply the formatting so the workspace is fmt-clean; no logic change.
1 parent 83443b3 commit f68ff6e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/output/vcf/records.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ impl VcfWriter {
260260
.as_ref()
261261
.and_then(|c| c.first())
262262
.copied();
263-
let depth = variant.total_reads.as_ref().and_then(|c| c.first()).copied();
263+
let depth = variant
264+
.total_reads
265+
.as_ref()
266+
.and_then(|c| c.first())
267+
.copied();
264268
match (support, forward, reverse, depth) {
265269
(Some(s), Some(f), Some(r), Some(d)) => Some((s, f, r, d)),
266270
_ => None,

tests/integration.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,9 @@ chr1\t7\t.\tT\tTG\t.\tPASS\t.\n",
674674
.iter()
675675
.find(|row| {
676676
row.get("Event Class").map(String::as_str) == Some("complex_indel")
677-
&& row.get("Event Components").is_some_and(|c| {
678-
c.contains("DEL:6:A") && c.contains("INS:7:+G")
679-
})
677+
&& row
678+
.get("Event Components")
679+
.is_some_and(|c| c.contains("DEL:6:A") && c.contains("INS:7:+G"))
680680
})
681681
.expect("a complex_indel row combining the codon-2 deletion and codon-3 insertion");
682682
assert_eq!(

0 commit comments

Comments
 (0)