mind-body: drop the last unused import and field clippy found
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
35f0e40681
commit
cf029115cc
3 changed files with 2 additions and 6 deletions
|
|
@ -282,9 +282,8 @@ pub fn carry<C: Chat>(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<C: Chat>(instance: &Slug, start: &Start<C>) -> 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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
use serde_json::{Value, json};
|
||||
|
||||
use super::*;
|
||||
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue