From cf029115ccf7d0059e6ee7a260a3245c0f3c563f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 29 Nov 2026 21:24:35 +0100 Subject: [PATCH] mind-body: drop the last unused import and field clippy found Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/persona.rs | 5 ++--- crates/mind-body/src/projection/outcome/tests.rs | 2 -- crates/mind-body/src/projection/read/tests.rs | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/mind-body/src/persona.rs b/crates/mind-body/src/persona.rs index df6dc6a..d51b758 100644 --- a/crates/mind-body/src/persona.rs +++ b/crates/mind-body/src/persona.rs @@ -282,9 +282,8 @@ pub fn carry(control: &impl ControlSource, swarm: &impl ControlSource, /// How many wakes that held a waking line may fail before the line is set aside. const STRIKES: usize = 2; -/// A waking line: where it sits in the mouth's queue, and which room and event it is. +/// A waking line: which room and event it is. struct Waking<'a> { - seq: u64, room: &'a str, event: &'a str, /// Who sent it, as the mouth names them, and what they said. @@ -344,7 +343,7 @@ fn drain(instance: &Slug, start: &Start) -> Outcome { .iter() .zip(&facts) .filter(|(delivery, facts)| claimed.contains(&delivery.event_id) || wakes(&her, delivery, speaker(config, delivery), **facts).is_some()) - .map(|(delivery, _)| Waking { seq: delivery.seq, room: delivery.room_alias.as_str(), event: delivery.event_id.as_str(), sender: if delivery.sender_display.is_empty() { delivery.sender.as_str() } else { delivery.sender_display.as_str() }, text: delivery.text.as_str() }) + .map(|(delivery, _)| Waking { room: delivery.room_alias.as_str(), event: delivery.event_id.as_str(), sender: if delivery.sender_display.is_empty() { delivery.sender.as_str() } else { delivery.sender_display.as_str() }, text: delivery.text.as_str() }) .collect(); let woken = !waking_all.is_empty(); // A line her trace shows decided is not waking again, whatever else in the queue is still stuck. The oldest waking line, once diff --git a/crates/mind-body/src/projection/outcome/tests.rs b/crates/mind-body/src/projection/outcome/tests.rs index eccdbe1..cb04615 100644 --- a/crates/mind-body/src/projection/outcome/tests.rs +++ b/crates/mind-body/src/projection/outcome/tests.rs @@ -1,5 +1,3 @@ -use serde_json::{Value, json}; - use super::*; // --------------------------------------------------------------------------------------------- diff --git a/crates/mind-body/src/projection/read/tests.rs b/crates/mind-body/src/projection/read/tests.rs index dbc7cab..38ba638 100644 --- a/crates/mind-body/src/projection/read/tests.rs +++ b/crates/mind-body/src/projection/read/tests.rs @@ -2,7 +2,6 @@ //! her, the clip with its count, the fenced bridge, and the recorded reads a harness run performs. use super::*; -use crate::projection::select::Forms; #[test] fn a_result_past_its_cap_is_clipped_with_a_count() {