diff --git a/crates/mind-body/src/projection/select.rs b/crates/mind-body/src/projection/select.rs index cfe1b04..24a8445 100644 --- a/crates/mind-body/src/projection/select.rs +++ b/crates/mind-body/src/projection/select.rs @@ -1958,10 +1958,10 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet { let her = forms(inputs.state); let mut context = Context::new(guards(tuning, her), her); // Her own posted lines are never what she was sent: the quote guard and the echo check compare against others' words only. - let others = |line: &&RoomLine| line.sender != inputs.people.own_sender; + let others = |line: &RoomLine| line.sender != inputs.people.own_sender; let bodies: Vec = match inputs.kind { - TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), - TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), + TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), + TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), TurnKind::FollowUp | TurnKind::Reflection => Vec::new(), }; // What she may reply to (map 16.20.8 (D), K20): the lines of others in the turn's room whose words this packet shows