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 --------- src/db.rs | 8 -------- src/files.rs | 1 - src/lib.rs | 2 -- 4 files changed, 20 deletions(-) (limited to 'src') 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); diff --git a/src/db.rs b/src/db.rs index f627ef4..1958fc5 100644 --- a/src/db.rs +++ b/src/db.rs @@ -165,11 +165,6 @@ pub fn mods_get_versions(config: &Cfg, mods: Vec) -> MLE MLE<()> { - // println!("Creating list {}", id); - let data = format!("{}/data.db", config.data); let connection = Connection::open(data)?; diff --git a/src/files.rs b/src/files.rs index e874d9d..c81857b 100644 --- a/src/files.rs +++ b/src/files.rs @@ -160,7 +160,6 @@ pub fn disable_version( versionid: String, mod_id: String, ) -> MLE<()> { - //println!("Disabling version {} for mod {}", versionid, mod_id); let file = get_file_path(¤t_list, String::from(&versionid))?; let disabled = format!("{}.disabled", file); diff --git a/src/lib.rs b/src/lib.rs index 8196f1c..d76f8bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -117,14 +117,12 @@ impl VersionLevel { let release = versions .find(|ver| ver.version_type == GameVersionType::release) .unwrap(); - println!("{:?}", release); Ok(release.version) } VersionLevel::Snapshot => { let snapshot = versions .find(|ver| ver.version_type == GameVersionType::snapshot) .unwrap(); - println!("{:?}", snapshot); Ok(snapshot.version) } VersionLevel::Version(v) => { -- cgit v1.2.3