From b924e8274626cd9f602bf1f1e325342e95633f21 Mon Sep 17 00:00:00 2001 From: kul-sudo Date: Sun, 11 Aug 2024 19:56:39 +0300 Subject: [PATCH] fmt --- src/body.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/body.rs b/src/body.rs index 256d32c..645dc1b 100644 --- a/src/body.rs +++ b/src/body.rs @@ -1024,7 +1024,10 @@ impl Body { body_id: &BodyId, followed_by: &HashMap, ) -> bool { - if self.skills.contains(&Skill::DoNotCompeteWithYoungerRelatives) { + if self + .skills + .contains(&Skill::DoNotCompeteWithYoungerRelatives) + { followed_by.iter().all(|(other_body_id, other_body)| { other_body_id == body_id || if other_body.body_type == self.body_type {