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/main.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 7e00368..d03f88a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -170,10 +170,10 @@ async fn main() { lock, } => { let listf = match list { - Some(list) => lists_get(&config, list).unwrap(), + Some(list) => lists_get(&config, &list).unwrap(), None => lists_get( &config, - config_get_current_list(&config).unwrap(), + &config_get_current_list(&config).unwrap(), ) .unwrap(), }; @@ -189,10 +189,10 @@ async fn main() { } ModCommands::Remove { id, list } => { let listf = match list { - Some(list) => lists_get(&config, list).unwrap(), + Some(list) => lists_get(&config, &list).unwrap(), None => lists_get( &config, - config_get_current_list(&config).unwrap(), + &config_get_current_list(&config).unwrap(), ) .unwrap(), }; @@ -231,7 +231,7 @@ async fn main() { version, download, remove, - } => list_version(&config, id, version, download, remove).await, + } => list_version(&config, &id, version, download, remove).await, } } Commands::Update { @@ -245,11 +245,11 @@ async fn main() { if all { let list_ids = lists_get_all_ids(&config).unwrap(); for id in list_ids { - liststack.push(lists_get(&config, id).unwrap()); + liststack.push(lists_get(&config, &id).unwrap()); } } else { let current = match list { - Some(l) => lists_get(&config, l).unwrap(), + Some(l) => lists_get(&config, &l).unwrap(), None => get_current_list(&config).unwrap(), }; liststack.push(current) @@ -262,11 +262,11 @@ async fn main() { if all { let list_ids = lists_get_all_ids(&config).unwrap(); for id in list_ids { - liststack.push(lists_get(&config, id).unwrap()); + liststack.push(lists_get(&config, &id).unwrap()); } } else { let current = match list { - Some(l) => lists_get(&config, l).unwrap(), + Some(l) => lists_get(&config, &l).unwrap(), None => get_current_list(&config).unwrap(), }; liststack.push(current) @@ -285,7 +285,7 @@ async fn main() { .unwrap(), }; - import(&config, filestr, download).await + import(&config, &filestr, download).await } Commands::Export { list } => export(&config, list), Commands::Test => Ok(()), -- cgit v1.2.3