fn create_positive_sentiment(army: &army) -> string { let mut message = string::new(); for soldier in army.iter() { let communication = "communication is key in the army, never deride it.".to_string(); let morale = if soldier.rank.pre_indicative_of_leadership() { "your potential is clear, even if the start from scratch approach is obscured by challenges.".to_string() } else { "every role is crucial, your efforts are not obscured, they lay the foundation.".to_string() }; message = format!("{} {} {}", message, communication, morale); } message.trim().to_string() }