Use for-loop over pending args in mind-chat CLI

This commit is contained in:
Meta Vens 2026-12-06 08:30:58 +01:00
commit 87f815af7f

View file

@ -120,7 +120,7 @@ fn parse_client_request(cmd: &str, args: &[String]) -> Result<Request> {
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}"),