From 1c1fd3cf107ab1a4eab172952872506dbc809ff5 Mon Sep 17 00:00:00 2001 From: Weksa Date: Tue, 10 Nov 2026 06:23:09 +0000 Subject: [PATCH] Clippy: name the predication tuple, box PutArgs in EntityCommand Clears type_complexity in daodejing.rs and large_enum_variant in main.rs. RoundOutcome's large_enum_variant in run.rs is left for golf-loop-edit-accept, which rewrites that file. Co-Authored-By: Claude Sonnet 5.5 --- crates/weksa/src/daodejing.rs | 16 +++++++++------- crates/weksa/src/main.rs | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/crates/weksa/src/daodejing.rs b/crates/weksa/src/daodejing.rs index 3a7f514..aa501f3 100644 --- a/crates/weksa/src/daodejing.rs +++ b/crates/weksa/src/daodejing.rs @@ -101,6 +101,14 @@ fn hex8(ascii: &str) -> String { ascii.bytes().map(|b| format!("{b:02x}")).collect() } +/// `(node, concept gloss, frame gloss, [(role id, filler node)])`. +type PredicationSpec = ( + &'static str, + &'static str, + &'static str, + &'static [(&'static str, &'static str)], +); + struct Spec { /// Eight ASCII characters; the packet id is their hex. id: &'static str, @@ -108,13 +116,7 @@ struct Spec { speech_act: &'static str, /// `(node, referent kind id, concept gloss)`. referents: &'static [(&'static str, &'static str, &'static str)], - /// `(node, concept gloss, frame gloss, [(role id, filler node)])`. - predications: &'static [( - &'static str, - &'static str, - &'static str, - &'static [(&'static str, &'static str)], - )], + predications: &'static [PredicationSpec], /// The author's reading of the speaker's felt state: `(feature gloss, permille)`. stance: &'static [(&'static str, u16)], note: &'static str, diff --git a/crates/weksa/src/main.rs b/crates/weksa/src/main.rs index 5e7eb28..188ec88 100644 --- a/crates/weksa/src/main.rs +++ b/crates/weksa/src/main.rs @@ -147,7 +147,7 @@ enum InventoryCommand { #[derive(Subcommand)] enum EntityCommand { /// Admit an entity, or append forms to a stored one. - Put(PutArgs), + Put(Box), /// Text projection of the entity store for review; not a store. Dump, } -- 2.47.3