rucaja icon indicating copy to clipboard operation
rucaja copied to clipboard

Reduce the usage of `unwrap()`

Open kud1ing opened this issue 8 years ago • 0 comments

We use unwrap() in some places where the result should "in theory" always be existant.

We should handle those unlikely cases. Consider:

  • bubble Nones up in functions that return an Option. Consider using ? for Options in Rust 1.22.
  • panic if JVM methods fail when we can not handle it otherwise

kud1ing avatar Nov 22 '17 08:11 kud1ing