(s: &str)
| 12 | } |
| 13 | |
| 14 | fn parse_num(s: &str) -> Vec<(u32,u8)> { |
| 15 | let (mut d, mut num) = (0, Vec::new()); |
| 16 | for c in s.chars() { |
| 17 | match c { |
| 18 | '[' => d += 1, |
| 19 | ']' => d -= 1, |
| 20 | ',' => {} |
| 21 | _ => num.push(((c as u8 - b'0') as u32, d)), |
| 22 | } |
| 23 | } |
| 24 | num |
| 25 | } |
| 26 | |
| 27 | fn explode(num: &mut Vec<(u32,u8)>) { |
| 28 | loop { |
nothing calls this directly
no outgoing calls
no test coverage detected