From f5e070cdf6628a5ebd981d373929802317104e24 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 09:56:42 +0200 Subject: clippy --fix --- src/commands/modification.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands/modification.rs') diff --git a/src/commands/modification.rs b/src/commands/modification.rs index 4488b70..e0e54b2 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs @@ -65,7 +65,7 @@ pub async fn mod_add( add_p.inc(1); match m.id { IDSelector::ModificationID(pid) => { - mod_ids.push((pid, m.set_version)) + mod_ids.push((pid, m.set_version)); } IDSelector::VersionID(vid) => ver_ids.push((vid, m.set_version)), } @@ -153,7 +153,7 @@ pub async fn mod_add( }?; if project.current_version.is_some() { - downloadstack.push(project.current_version.unwrap()) + downloadstack.push(project.current_version.unwrap()); }; project_p.inc(1); @@ -245,7 +245,7 @@ async fn get_mod_infos( applicable_versions: available_versions_vec, download_link: file, set_version: *setmap.get(&project.slug).unwrap(), - }) + }); } else { current_version = None; file = String::from("NONE"); @@ -258,7 +258,7 @@ async fn get_mod_infos( applicable_versions: available_versions_vec, download_link: file, set_version: *setmap.get(&project.id).unwrap(), - }) + }); } } @@ -308,7 +308,7 @@ async fn get_ver_info( applicable_versions: vec![String::from(&version.id)], download_link: file, set_version: *setmap.get(&version.id).unwrap(), - }) + }); } Ok(projectinfo) } @@ -335,7 +335,7 @@ pub fn mod_remove(config: &Cfg, id: &str, list: &List) -> MLE<()> { progress.set_message("Delete file"); match delete_version(list, version) { - Ok(_) => (), + Ok(()) => (), Err(err) => { if err.to_string() != "User input not accepted: VERSION_NOT_FOUND_IN_FILES" -- cgit v1.2.3