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 <noreply@anthropic.com>
This commit is contained in:
Weksa 2026-11-10 06:23:09 +00:00
commit 1c1fd3cf10
2 changed files with 10 additions and 8 deletions

View file

@ -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,

View file

@ -147,7 +147,7 @@ enum InventoryCommand {
#[derive(Subcommand)]
enum EntityCommand {
/// Admit an entity, or append forms to a stored one.
Put(PutArgs),
Put(Box<PutArgs>),
/// Text projection of the entity store for review; not a store.
Dump,
}