Persona K54: name the parsed answer's type (clippy type_complexity)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-22 11:03:53 +01:00
commit 2b5a70c6fc

View file

@ -732,7 +732,9 @@ pub(crate) fn decide_in(model: &dyn Model, request_id: &str, packet: &Packet, na
// failed. A turn fails only when no answer parsed: a model error on the first call, or no answer the contract.
let mut retried: Option<Value> = None;
let mut asking = prompt.clone();
let mut parsed_first: Option<(Answer, Vec<Value>, Vec<String>, Vec<usize>)> = None;
// An answer that parsed, with its resolved gaps, its hold faults and its drafts accounted for nowhere.
type Parsed = (Answer, Vec<Value>, Vec<String>, Vec<usize>);
let mut parsed_first: Option<Parsed> = None;
let (parsed, gaps, unopened, undecided) = loop {
let answer = match model.ask(request_id, &tuning.interpreter.model, &asking, Some(SPEECH_SCHEMA)) {
Ok(answer) => answer,