chore(deps): bump softprops/action-gh-release from 2 to 3 #176
Annotations
5 warnings
|
Run clippy action:
src/ui/screens/readerscreen.rs#L214
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> src/ui/screens/readerscreen.rs:214:26
|
214 | let textheight = text.height() as usize;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `text.height()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
|
Run clippy action:
src/core/library/feedlibrary.rs#L135
warning: consider using `sort_by_key`
--> src/core/library/feedlibrary.rs:135:21
|
135 | entries.sort_by(|a, b| b.date.cmp(&a.date));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
help: try
|
135 - entries.sort_by(|a, b| b.date.cmp(&a.date));
135 + entries.sort_by_key(|b| std::cmp::Reverse(b.date));
|
|
|
Run clippy action:
src/core/library/feedlibrary.rs#L125
warning: consider using `sort_by_key`
--> src/core/library/feedlibrary.rs:125:9
|
125 | entries.sort_by(|a, b| b.date.cmp(&a.date));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
help: try
|
125 - entries.sort_by(|a, b| b.date.cmp(&a.date));
125 + entries.sort_by_key(|b| std::cmp::Reverse(b.date));
|
|
|
Run clippy action:
src/core/library/data/librarydata.rs#L159
warning: consider using `sort_by_key`
--> src/core/library/data/librarydata.rs:159:9
|
159 | feeds.sort_by(|a, b| a.title.to_lowercase().cmp(&b.title.to_lowercase()));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
help: try
|
159 - feeds.sort_by(|a, b| a.title.to_lowercase().cmp(&b.title.to_lowercase()));
159 + feeds.sort_by_key(|a| a.title.to_lowercase());
|
|
|
Run clippy action:
src/core/library/data/librarydata.rs#L129
warning: consider using `sort_by_key`
--> src/core/library/data/librarydata.rs:129:9
|
129 | categories.sort_by(|a, b| a.title.to_lowercase().cmp(&b.title.to_lowercase()));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
= note: `#[warn(clippy::unnecessary_sort_by)]` on by default
help: try
|
129 - categories.sort_by(|a, b| a.title.to_lowercase().cmp(&b.title.to_lowercase()));
129 + categories.sort_by_key(|a| a.title.to_lowercase());
|
|
background
wait
wait-all
cancel
Loading