From c7ecf3019a75dc0ab1a0aefeb9b880899fc8a231 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 29 May 2023 18:01:12 +0200 Subject: cargo fmt and add fmt file --- src/main.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d9ad6af..5d60a17 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,9 @@ 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, IDSelector, List, Modloader, VersionLevel, + download, export, get_current_list, import, list_add, list_change, + list_list, list_remove, list_version, mod_add, mod_remove, update, AddMod, + IDSelector, List, Modloader, VersionLevel, }; #[derive(Parser)] @@ -170,7 +171,11 @@ async fn main() { } => { let listf = match list { Some(list) => lists_get(&config, &list).unwrap(), - None => lists_get(&config, &config_get_current_list(&config).unwrap()).unwrap(), + None => lists_get( + &config, + &config_get_current_list(&config).unwrap(), + ) + .unwrap(), }; let marked_id = match version { @@ -188,7 +193,11 @@ async fn main() { ModCommands::Remove { id, list } => { let listf = match list { Some(list) => lists_get(&config, &list).unwrap(), - None => lists_get(&config, &config_get_current_list(&config).unwrap()).unwrap(), + None => lists_get( + &config, + &config_get_current_list(&config).unwrap(), + ) + .unwrap(), }; mod_remove(&config, &id, &listf) } -- cgit v1.2.3