From d8554e30029bf43dccce72e982784cd01857b0c4 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Thu, 25 May 2023 22:48:54 +0200 Subject: added mod add progress --- src/commands/list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands/list.rs') diff --git a/src/commands/list.rs b/src/commands/list.rs index 95f9927..52f14f2 100644 --- a/src/commands/list.rs +++ b/src/commands/list.rs @@ -18,7 +18,7 @@ pub struct List { pub fn get_current_list(config: &Cfg) -> MLE { let id = config_get_current_list(config)?; - lists_get(config, id) + lists_get(config, &id) } pub fn list_add( @@ -52,7 +52,7 @@ pub fn list_remove(config: &Cfg, id: String) -> MLE<()> { /// * `args` - All args, to extract the new version pub async fn list_version( config: &Cfg, - id: String, + id: &str, mc_version: String, download: bool, delete: bool, @@ -62,7 +62,7 @@ pub async fn list_version( id, mc_version ); - lists_version(config, &id, &mc_version)?; + lists_version(config, id, &mc_version)?; println!( "\nCheck for updates for new minecraft version in list {}", @@ -75,7 +75,7 @@ pub async fn list_version( pub fn list_list(config: &Cfg) -> MLE<()> { let lists = lists_get_all_ids(config)?; for list in lists { - let l = lists_get(config, list)?; + let l = lists_get(config, &list)?; println!("{}: | {} | {}", l.id, l.mc_version, l.modloader) } Ok(()) -- cgit v1.2.3