diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-16 14:02:59 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-16 14:02:59 +0200 |
commit | b4ee42a62c683632c589f39e6ceac0b48d222e87 (patch) | |
tree | 84a8ca5a7a63492166284cc46ba2cd2186765a64 /crates | |
parent | fix(yt/update): Also handle the newly introduced error conditions (diff) | |
download | yt-b4ee42a62c683632c589f39e6ceac0b48d222e87.zip |
style(yt/select): Apply clippy's suggestions
Diffstat (limited to '')
-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<()> { |