From 122c75f4beba759091d4f2f477fac7012cdcc3b9 Mon Sep 17 00:00:00 2001 From: Taha Hawa Date: Fri, 18 Apr 2025 21:11:41 -0400 Subject: [PATCH] fix comments --- harmony_cli/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harmony_cli/src/lib.rs b/harmony_cli/src/lib.rs index ee01161..bd10c0d 100644 --- a/harmony_cli/src/lib.rs +++ b/harmony_cli/src/lib.rs @@ -53,8 +53,8 @@ fn maestro_scores_filter( let mut scores_vec: Vec>> = match filter { Some(f) => scores_read .iter() - .map(|s| s.clone_box()) .filter(|s| s.name().contains(&f)) + .map(|s| s.clone_box()) .collect(), None => scores_read.iter().map(|s| s.clone_box()).collect(), }; @@ -113,7 +113,7 @@ pub async fn init( return Ok(()); } - // if no score to run provided, and list isn't specified, print help + // prompt user if --yes is not specified if !args.yes { let confirmation = Confirm::new( format!( @@ -131,7 +131,7 @@ pub async fn init( } } - // if all is specified, run all. Otherwise, run the first match or specified index + // Run filtered scores for s in scores_vec { println!("Running: {}", s.name()); maestro.interpret(s).await?;