Ad
Code
Diff
  • pub fn bool_check(b: [bool; 3]) -> bool {
        b.iter().filter(|&&x| x).count() >= 2
    }
    • pub fn bool_check(b: [bool; 3]) -> bool {
    • b[0]as u8+b[1]as u8+b[2]as u8>1
    • b.iter().filter(|&&x| x).count() >= 2
    • }