Repository navigation
build(deps): bump serde_json from 1.0.150 to 1.0.151 - #8
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Annotations
1 warning
|
Run clippy action:
src/model/recent.rs#L85
warning: consider using `sort_by_key`
--> src/model/recent.rs:85:5
|
85 | items.sort_by(|a, b| b.opened_at.cmp(&a.opened_at));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
85 - items.sort_by(|a, b| b.opened_at.cmp(&a.opened_at));
85 + items.sort_by_key(|b| std::cmp::Reverse(b.opened_at));
|
|
background
wait
wait-all
cancel
parallel
Loading