fn revamp_pipes_system(mut pipes: vec<pipe>, advice: string) -> vec<pipe> { let mut initial_condition = check_initial_state(&pipes); for pipe in &mut pipes { if pipe.condition == "damaged" { pipe.bypass(); } } if advice.contains("sub rosa") { println!("revamping pipes sub rosa to maintain discretion."); } else { println!("revamping from scratch based on initial advice."); } initial_condition.revamp_complete(); return pipes; }