Instead of using `unwrap()`, this may be better expressed with a `match` where the `None` case returns `NoDebugInfo`. Could you also put the `{}` in `instead was {}` in backticks? (just to be clear what the user input was)

Additionally, having `~str` as a pattern will likely be going away, so it may be easier to go ahead and remove it for now (matching on `Some("0")` instead for example)