diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/yt/src/select/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/yt/src/select/mod.rs b/crates/yt/src/select/mod.rs index a361fed..135bd76 100644 --- a/crates/yt/src/select/mod.rs +++ b/crates/yt/src/select/mod.rs @@ -77,12 +77,12 @@ pub async fn select_split( match sort_key { SelectSplitSortKey::Publisher => { // PERFORMANCE: The clone here should not be neeed. <2025-06-15> - temp_vec.sort_by_key(|(name, _): &(String, Vec<Video>)| name.to_owned()) + temp_vec.sort_by_key(|(name, _): &(String, Vec<Video>)| name.to_owned()); } SelectSplitSortKey::Videos => { - temp_vec.sort_by_key(|(_, videos): &(String, Vec<Video>)| videos.len()) + temp_vec.sort_by_key(|(_, videos): &(String, Vec<Video>)| videos.len()); } - }; + } match sort_mode { SelectSplitSortMode::Asc => { @@ -264,7 +264,7 @@ async fn process_file(app: &App, file: &File, processed: i64) -> Result<i64> { } } - Ok(line_number * -1) + Ok(-line_number) } async fn open_editor_at(path: &Path) -> Result<()> { |