diff --git a/crates/mind-body/src/projection/turn.rs b/crates/mind-body/src/projection/turn.rs index 570cdd9..8b05a94 100644 --- a/crates/mind-body/src/projection/turn.rs +++ b/crates/mind-body/src/projection/turn.rs @@ -27,7 +27,7 @@ pub(crate) enum Sent { Refused(String), Lost, /// The mouth attempted nothing: the send is certainly not posted, still owed, and goes out as a first send later. - NotSent, + Unattempted, /// The mouth cannot say whether an earlier try posted: the send is never repeated, and is recorded unknown. Unknown, } @@ -73,7 +73,7 @@ impl Actuator for Mouth<'_> { Ok(receipt) => match (receipt.event_id, receipt.refusal) { (_, Some(refusal)) => match refusal.reading(resend) { Reading::NoAnswer => Sent::Lost, - Reading::NotSent => Sent::NotSent, + Reading::NotSent => Sent::Unattempted, Reading::Unknown => Sent::Unknown, Reading::Declined => Sent::Refused(refusal.name().to_owned()), }, @@ -222,7 +222,7 @@ pub(crate) fn deliver(actuator: &dyn Actuator, record: &mut Value, pass: Pass, s stalled.insert(room.clone()); still.push(send); } - Sent::NotSent => { + Sent::Unattempted => { stalled.insert(room.clone()); if !handed { unmark(&mut send); diff --git a/crates/mind-body/src/projection/turn/tests.rs b/crates/mind-body/src/projection/turn/tests.rs index b027884..afa8949 100644 --- a/crates/mind-body/src/projection/turn/tests.rs +++ b/crates/mind-body/src/projection/turn/tests.rs @@ -359,8 +359,6 @@ fn t_l3_past_the_window_a_handed_send_is_unknown_and_one_never_handed_is_refused assert!(record.get("owed").is_none()); } -} - /// Soul s7 owed-predicate-split. One predicate says a record owes a send, and the poll's `owes`, the ack's `owing` and the drain's owed list /// all read it: a failed record never owes, whatever it carries, and an empty `owed` owes nothing. #[test]