diff options
Diffstat (limited to 'src/commands/modification.rs')
-rw-r--r-- | src/commands/modification.rs | 9 |
1 files changed, 0 insertions, 9 deletions
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( | |||
166 | 166 | ||
167 | let mut ids = vec![]; | 167 | let mut ids = vec![]; |
168 | 168 | ||
169 | // println!("{:?}", mod_ids); | ||
170 | |||
171 | for id in mod_ids { | 169 | for id in mod_ids { |
172 | setmap.insert(id.0.to_string(), id.1); | 170 | setmap.insert(id.0.to_string(), id.1); |
173 | ids.push(id.0); | 171 | ids.push(id.0); |
@@ -182,8 +180,6 @@ async fn get_mod_infos( | |||
182 | _ => panic!("PANIC"), | 180 | _ => panic!("PANIC"), |
183 | }; | 181 | }; |
184 | for project in m_projects { | 182 | for project in m_projects { |
185 | // println!("\t└{}", project.title); | ||
186 | // println!("\t └Get versions"); | ||
187 | let available_versions = versions( | 183 | let available_versions = versions( |
188 | &config.apis.modrinth, | 184 | &config.apis.modrinth, |
189 | String::from(&project.id), | 185 | String::from(&project.id), |
@@ -196,7 +192,6 @@ async fn get_mod_infos( | |||
196 | let file: String; | 192 | let file: String; |
197 | if !available_versions.is_empty() { | 193 | if !available_versions.is_empty() { |
198 | let current_id = extract_current_version(available_versions.clone())?; | 194 | let current_id = extract_current_version(available_versions.clone())?; |
199 | // println!("\t └Current version: {}", current_id); | ||
200 | 195 | ||
201 | current_version = Some( | 196 | current_version = Some( |
202 | available_versions | 197 | available_versions |
@@ -219,8 +214,6 @@ async fn get_mod_infos( | |||
219 | available_versions_vec.push(ver.id); | 214 | available_versions_vec.push(ver.id); |
220 | } | 215 | } |
221 | 216 | ||
222 | // println!("{:?}", setmap); | ||
223 | |||
224 | projectinfo.push(ProjectInfo { | 217 | projectinfo.push(ProjectInfo { |
225 | mod_id: String::from(&project.id), | 218 | mod_id: String::from(&project.id), |
226 | slug: project.slug.clone(), | 219 | slug: project.slug.clone(), |
@@ -231,7 +224,6 @@ async fn get_mod_infos( | |||
231 | set_version: *setmap.get(&project.slug).unwrap(), | 224 | set_version: *setmap.get(&project.slug).unwrap(), |
232 | }) | 225 | }) |
233 | } else { | 226 | } else { |
234 | // println!("\t └There's currently no mod version for your specified target"); | ||
235 | current_version = None; | 227 | current_version = None; |
236 | file = String::from("NONE"); | 228 | file = String::from("NONE"); |
237 | available_versions_vec.push(String::from("NONE")); | 229 | available_versions_vec.push(String::from("NONE")); |
@@ -335,7 +327,6 @@ pub fn mod_remove(config: &Cfg, id: &str, list: &List) -> MLE<()> { | |||
335 | Ok(m) => m, | 327 | Ok(m) => m, |
336 | Err(err) => { | 328 | Err(err) => { |
337 | if err.to_string() == "Database: NO_MODS_USERLIST" { | 329 | if err.to_string() == "Database: NO_MODS_USERLIST" { |
338 | println!(" ✓"); | ||
339 | return Ok(()); | 330 | return Ok(()); |
340 | }; | 331 | }; |
341 | return Err(err); | 332 | return Err(err); |