Skip to content

Commit 6980dd5

Browse files
committed
Apply formatting.
1 parent 03f8de8 commit 6980dd5

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/builds.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ const GRCh38_p13: &[u8] = include_bytes!("data/GCF_000001405.39_GRCh38.p13_assem
6060
/// If the builtin assembly report cannot be parsed (should not happen).
6161
pub fn get_grch37_p13() -> GenomeBuild {
6262
let id = GenomeBuildIdentifier::from(("GRCh37", "p13"));
63-
parse_assembly_report(id, GRCh37_p13).expect("The embedded assembly report for GRCh37.p13 should be valid")
63+
parse_assembly_report(id, GRCh37_p13)
64+
.expect("The embedded assembly report for GRCh37.p13 should be valid")
6465
}
6566

6667
/// Get the *GRCh38.p13* build.
@@ -70,7 +71,8 @@ pub fn get_grch37_p13() -> GenomeBuild {
7071
/// If the builtin assembly report cannot be parsed (should not really happen).
7172
pub fn get_grch38_p13() -> GenomeBuild {
7273
let id = GenomeBuildIdentifier::from(("GRCh38", "p13"));
73-
parse_assembly_report(id, GRCh38_p13).expect("The embedded assembly report for GRCh38.p13 should be valid")
74+
parse_assembly_report(id, GRCh38_p13)
75+
.expect("The embedded assembly report for GRCh38.p13 should be valid")
7476
}
7577

7678
/// Parse an assembly report into a [`GenomeBuild`].

src/genome.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,7 @@ impl ContigBuilder<WithNameAndLength> {
347347
}
348348

349349
/// Set the UCSC accession (e.g. `"chrY"` for chromosome Y).
350-
pub fn ucsc_name(
351-
self,
352-
ucsc_name: impl ToString,
353-
) -> ContigBuilder<WithNameLengthAndAltNames> {
350+
pub fn ucsc_name(self, ucsc_name: impl ToString) -> ContigBuilder<WithNameLengthAndAltNames> {
354351
ContigBuilder {
355352
state: WithNameLengthAndAltNames {
356353
name: self.state.name,
@@ -409,10 +406,7 @@ impl ContigBuilder<WithNameLengthAndAltNames> {
409406
}
410407

411408
/// Set the UCSC accession (e.g. `"chrY"` for chromosome Y).
412-
pub fn ucsc_name(
413-
self,
414-
ucsc_name: impl ToString,
415-
) -> ContigBuilder<WithNameLengthAndAltNames> {
409+
pub fn ucsc_name(self, ucsc_name: impl ToString) -> ContigBuilder<WithNameLengthAndAltNames> {
416410
ContigBuilder {
417411
state: WithNameLengthAndAltNames {
418412
name: self.state.name,

0 commit comments

Comments
 (0)