summaryrefslogtreecommitdiff
path: root/src/commands/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/list.rs')
-rw-r--r--src/commands/list.rs8
1 files changed, 4 insertions, 4 deletions
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 {
18 18
19pub fn get_current_list(config: &Cfg) -> MLE<List> { 19pub fn get_current_list(config: &Cfg) -> MLE<List> {
20 let id = config_get_current_list(config)?; 20 let id = config_get_current_list(config)?;
21 lists_get(config, id) 21 lists_get(config, &id)
22} 22}
23 23
24pub fn list_add( 24pub fn list_add(
@@ -52,7 +52,7 @@ pub fn list_remove(config: &Cfg, id: String) -> MLE<()> {
52/// * `args` - All args, to extract the new version 52/// * `args` - All args, to extract the new version
53pub async fn list_version( 53pub async fn list_version(
54 config: &Cfg, 54 config: &Cfg,
55 id: String, 55 id: &str,
56 mc_version: String, 56 mc_version: String,
57 download: bool, 57 download: bool,
58 delete: bool, 58 delete: bool,
@@ -62,7 +62,7 @@ pub async fn list_version(
62 id, mc_version 62 id, mc_version
63 ); 63 );
64 64
65 lists_version(config, &id, &mc_version)?; 65 lists_version(config, id, &mc_version)?;
66 66
67 println!( 67 println!(
68 "\nCheck for updates for new minecraft version in list {}", 68 "\nCheck for updates for new minecraft version in list {}",
@@ -75,7 +75,7 @@ pub async fn list_version(
75pub fn list_list(config: &Cfg) -> MLE<()> { 75pub fn list_list(config: &Cfg) -> MLE<()> {
76 let lists = lists_get_all_ids(config)?; 76 let lists = lists_get_all_ids(config)?;
77 for list in lists { 77 for list in lists {
78 let l = lists_get(config, list)?; 78 let l = lists_get(config, &list)?;
79 println!("{}: | {} | {}", l.id, l.mc_version, l.modloader) 79 println!("{}: | {} | {}", l.id, l.mc_version, l.modloader)
80 } 80 }
81 Ok(()) 81 Ok(())