Commit b250663
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments