We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4b71e commit dbec183Copy full SHA for dbec183
src/source/nyaa_rss.rs
@@ -27,7 +27,7 @@ pub fn get_ext_value<T: Default + FromStr>(ext_map: &ExtensionMap, key: &str) ->
27
.unwrap_or_default()
28
}
29
30
-fn sort_items(items: &mut Vec<Item>, sort: Sort, reverse: bool) {
+fn sort_items(items: &mut [Item], sort: Sort, reverse: bool) {
31
let f: fn(&Item, &Item) -> Ordering = match sort {
32
Sort::Date => |a, b| a.index.cmp(&b.index),
33
Sort::Downloads => |a, b| b.downloads.cmp(&a.downloads),
0 commit comments