From 7755c9acf6b8a1d81c03ef1138e80a162f36e743 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 26 May 2023 17:45:08 +0200 Subject: removed all println! --- src/commands/modification.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/commands/modification.rs') diff --git a/src/commands/modification.rs b/src/commands/modification.rs index fdb70c7..577bbd1 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs @@ -166,8 +166,6 @@ async fn get_mod_infos( let mut ids = vec![]; - // println!("{:?}", mod_ids); - for id in mod_ids { setmap.insert(id.0.to_string(), id.1); ids.push(id.0); @@ -182,8 +180,6 @@ async fn get_mod_infos( _ => panic!("PANIC"), }; for project in m_projects { - // println!("\t└{}", project.title); - // println!("\t └Get versions"); let available_versions = versions( &config.apis.modrinth, String::from(&project.id), @@ -196,7 +192,6 @@ async fn get_mod_infos( let file: String; if !available_versions.is_empty() { let current_id = extract_current_version(available_versions.clone())?; - // println!("\t └Current version: {}", current_id); current_version = Some( available_versions @@ -219,8 +214,6 @@ async fn get_mod_infos( available_versions_vec.push(ver.id); } - // println!("{:?}", setmap); - projectinfo.push(ProjectInfo { mod_id: String::from(&project.id), slug: project.slug.clone(), @@ -231,7 +224,6 @@ async fn get_mod_infos( set_version: *setmap.get(&project.slug).unwrap(), }) } else { - // println!("\t └There's currently no mod version for your specified target"); current_version = None; file = String::from("NONE"); available_versions_vec.push(String::from("NONE")); @@ -335,7 +327,6 @@ pub fn mod_remove(config: &Cfg, id: &str, list: &List) -> MLE<()> { Ok(m) => m, Err(err) => { if err.to_string() == "Database: NO_MODS_USERLIST" { - println!(" ✓"); return Ok(()); }; return Err(err); -- cgit v1.2.3