(x: i32)
| 1 | fn fizz_buzz(x: i32) -> String { |
| 2 | match (x % 3, x % 5) { |
| 3 | (0, 0) => "FizzBuzz".into(), |
| 4 | (0, _) => "Fizz".into(), |
| 5 | (_, 0) => "Buzz".into(), |
| 6 | (_, _) => format!("{}", x), |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | fn vec_fizz_buzz(n: i32) -> Vec<String> { |
| 11 | let mut v = Vec::new(); |
nothing calls this directly
no outgoing calls
no test coverage detected