()
| 14 | |
| 15 | impl Frog { |
| 16 | pub fn new() -> Self { |
| 17 | // 2. Use debug!() to log "A new Frog has been created" |
| 18 | Default::default() |
| 19 | } |
| 20 | pub fn hop(&mut self) { |
| 21 | self.energy -= 1; |
| 22 | // 3. Use info!() to log that a Frog hopped, and how much energy is left |
nothing calls this directly
no outgoing calls
no test coverage detected