Skip to content

Commit b250663

Browse files
authored
docs(readme): use absolute URLs for logo images (#21)
* fix(clippy): address new lints from rust-1.95 Three new clippy errors started firing on `-D warnings` after the rust-1.95 release: - `clippy::manual_checked_ops` in src/catalog/builder.rs: rewrite the `pct` closure with `checked_div(total).unwrap_or(0)`, which is semantically identical to the existing `if total == 0 { 0 } else { (n * 100) / total }` form. - `clippy::unnecessary_sort_by` in src/catalog/index.rs (x2): replace `sort_by(|a, b| b.1.cmp(&a.1))` with `sort_by_key(|b| std::cmp::Reverse(b.1))`. Both forms produce a stable sort by `.1` descending. No behavioral change. Unblocks the pre-commit hook so README and other commits can land again. * docs(readme): use absolute URLs for logo images Use https://raw.githubusercontent.com/<org>/<repo>/main/... for logo references so they render on crates.io. Relative paths render correctly on GitHub but are dropped by the crates.io README sanitizer, leaving a broken image at the top of every crate page.
1 parent 80b4686 commit b250663

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Identify which human reference genome was used to align a BAM/SAM/CRAM file.
1313
<p>
1414
<a href="https://fulcrumgenomics.com">
1515
<picture>
16-
<source media="(prefers-color-scheme: dark)" srcset=".github/logos/fulcrumgenomics-dark.svg">
17-
<source media="(prefers-color-scheme: light)" srcset=".github/logos/fulcrumgenomics-light.svg">
18-
<img alt="Fulcrum Genomics" src=".github/logos/fulcrumgenomics-light.svg" height="100">
16+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fulcrumgenomics/ref-solver/main/.github/logos/fulcrumgenomics-dark.svg">
17+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fulcrumgenomics/ref-solver/main/.github/logos/fulcrumgenomics-light.svg">
18+
<img alt="Fulcrum Genomics" src="https://raw.githubusercontent.com/fulcrumgenomics/ref-solver/main/.github/logos/fulcrumgenomics-light.svg" height="100">
1919
</picture>
2020
</a>
2121
</p>

0 commit comments

Comments
 (0)