diff --git a/crates/ghostlight/src/clock_tests/attitude_tests.rs b/crates/ghostlight/src/clock_tests/attitude_tests.rs index 9e59b9e..9948538 100644 --- a/crates/ghostlight/src/clock_tests/attitude_tests.rs +++ b/crates/ghostlight/src/clock_tests/attitude_tests.rs @@ -578,7 +578,7 @@ fn a_deed_the_room_saw_is_an_open_grievance_until_something_answers_it() { strike(&mut kernel, &clockwork, -30); let block = open_grievances(&kernel); - assert_eq!(block.matches("wronged").count(), 1, "one doer, no other: {block}"); + assert_eq!(block.matches("; acts seen by:").count(), 1, "one doer, no other: {block}"); assert!(block.contains("The Yard Farmer"), "{block}"); assert!(segment(&block, "wronged", ";").contains("The Yard Reeve"), "{block}"); let seen = segment(&block, "acts seen by:", "forums covering"); diff --git a/crates/ghostlight/src/table.rs b/crates/ghostlight/src/table.rs index b34daf9..f408c96 100644 --- a/crates/ghostlight/src/table.rs +++ b/crates/ghostlight/src/table.rs @@ -994,10 +994,7 @@ fn render_open_grievances(snapshot: &WorldSnapshot) -> String { use crate::attitude::AttitudeCause; use crate::patch::KnowledgeSource; let name = |id: SubjectId| { - label_for_any_id(snapshot, &id_text(id)).map_or_else( - || format!("[{}]", id_text(id)), - |label| format!("{label} [{}]", id_text(id)), - ) + label_for_any_id(snapshot, &id_text(id)).unwrap_or_else(|| format!("[{}]", id_text(id))) }; let mut out = String::from("\n Open grievances (derived: who was wronged, who saw it, what answers it):"); let mut any = false;