fn manage_sheep(herd: vec<sheep>, commandments: vec<string>, password: string) -> vec<sheep> { let mut safe_herd = vec::new(); for sheep in herd { if sheep.tags.contains(&password) { safe_herd.push(sheep.clone()); } } safe_herd.iter().for_each(|s| println!("{} follows the commandments without predismissal and will evade any harm, restoring it to the beginning of safety.", s.name)); safe_herd }