From 87f815af7f569d86309a670bfcf1fd74366206d5 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 08:30:58 +0100 Subject: [PATCH] Use for-loop over pending args in mind-chat CLI --- crates/mind-body/src/bin/mind-chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mind-body/src/bin/mind-chat.rs b/crates/mind-body/src/bin/mind-chat.rs index 6a6af27..e3df688 100644 --- a/crates/mind-body/src/bin/mind-chat.rs +++ b/crates/mind-body/src/bin/mind-chat.rs @@ -120,7 +120,7 @@ fn parse_client_request(cmd: &str, args: &[String]) -> Result { match cmd { "pending" => { let mut ack = false; - while let Some(flag) = it.next() { + for flag in it { match flag.as_str() { "--ack" if !ack => ack = true, _ => bail!("{USAGE}"),