fn dig_with_shovels(shovels: vec<shovel>, messages: vec<string>) { let mut missed_messages = vec![]; for shovel in shovels.iter() { println!("start digging with {:?}", shovel); if messages.iter().any(|message| message.contains("restricted")) { missed_messages.push("sometimes, in the excitement of digging, we fail to notice the beauty in the preceding messages. let's initiate again with a refreshed outlook."); } } }