summaryrefslogtreecommitdiff
path: root/src/commands/list.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-25 11:16:16 +0200
committerfxqnlr <[email protected]>2023-05-25 11:16:16 +0200
commit529d52534c300aec4a6e3e9e08f9762a401f7086 (patch)
tree463d3538dd295bbf6416ca3f141a1395d6cd1b76 /src/commands/list.rs
parent016e1d8d760113a64afcc5d516f08010cb566d68 (diff)
downloadmodlist-529d52534c300aec4a6e3e9e08f9762a401f7086.tar
modlist-529d52534c300aec4a6e3e9e08f9762a401f7086.tar.gz
modlist-529d52534c300aec4a6e3e9e08f9762a401f7086.zip
added more progress
Diffstat (limited to 'src/commands/list.rs')
-rw-r--r--src/commands/list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/list.rs b/src/commands/list.rs
index 4aa4306..c07823b 100644
--- a/src/commands/list.rs
+++ b/src/commands/list.rs
@@ -32,7 +32,7 @@ pub fn list_add(
32} 32}
33 33
34pub fn list_change(config: Cfg, id: String) -> MLE<()> { 34pub fn list_change(config: Cfg, id: String) -> MLE<()> {
35 if lists_get_all_ids(config.clone())?.into_iter().find(|l| l == &id).is_none() { 35 if !lists_get_all_ids(config.clone())?.into_iter().any(|l| l == id) {
36 return Err(MLError::new(ErrorType::ArgumentError, "List not found")); 36 return Err(MLError::new(ErrorType::ArgumentError, "List not found"));
37 }; 37 };
38 println!("Change default list to: {}", id); 38 println!("Change default list to: {}", id);