From 529d52534c300aec4a6e3e9e08f9762a401f7086 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Thu, 25 May 2023 11:16:16 +0200 Subject: added more progress --- src/commands/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/list.rs') 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( } pub fn list_change(config: Cfg, id: String) -> MLE<()> { - if lists_get_all_ids(config.clone())?.into_iter().find(|l| l == &id).is_none() { + if !lists_get_all_ids(config.clone())?.into_iter().any(|l| l == id) { return Err(MLError::new(ErrorType::ArgumentError, "List not found")); }; println!("Change default list to: {}", id); -- cgit v1.2.3