From 6a91d0a864f9edd9d9fe50ca89ccbce4fc98e043 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 11:12:04 +0200 Subject: do nearly anything to shut clippy up --- src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 21f2a30..a478ec7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,11 @@ +#![allow(clippy::too_many_lines)] + use clap::{Parser, Subcommand}; use modlist::{ config::Cfg, db::{config_get_current_list, lists_get, lists_get_all_ids}, download, export, get_current_list, import, list_add, list_change, - list_list, list_remove, list_version, mod_add, mod_remove, update, AddMod, + list_lists, list_remove, list_version, mod_add, mod_remove, update, AddMod, IDSelector, List, Modloader, VersionLevel, }; @@ -178,9 +180,10 @@ async fn main() { .unwrap(), }; - let marked_id = match version { - true => IDSelector::VersionID(id), - false => IDSelector::ModificationID(id), + let marked_id = if version { + IDSelector::VersionID(id) + } else { + IDSelector::ModificationID(id) }; let add_id = AddMod { @@ -235,7 +238,7 @@ async fn main() { list_add(&config, &id, &ver, &ml, &directory) } ListCommands::Remove { id } => list_remove(&config, &id), - ListCommands::List => list_list(&config), + ListCommands::List => list_lists(&config), ListCommands::Change { id } => list_change(&config, &id), ListCommands::Version { id, -- cgit v1.2.3