Skip to content

Commit dbec183

Browse files
committed
Use slice for rss sort
1 parent 1b4b71e commit dbec183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source/nyaa_rss.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn get_ext_value<T: Default + FromStr>(ext_map: &ExtensionMap, key: &str) ->
2727
.unwrap_or_default()
2828
}
2929

30-
fn sort_items(items: &mut Vec<Item>, sort: Sort, reverse: bool) {
30+
fn sort_items(items: &mut [Item], sort: Sort, reverse: bool) {
3131
let f: fn(&Item, &Item) -> Ordering = match sort {
3232
Sort::Date => |a, b| a.index.cmp(&b.index),
3333
Sort::Downloads => |a, b| b.downloads.cmp(&a.downloads),

0 commit comments

Comments
 (0)